Taufan Aditya | 3a63e44 | 2012-02-17 23:28:17 +0700 | [diff] [blame] | 1 | language: php |
| 2 | |
Timothy Warren | a963fbf | 2012-03-23 10:11:07 -0400 | [diff] [blame] | 3 | php: |
Dan Bernardic | d24652d | 2015-01-11 22:01:23 -0600 | [diff] [blame^] | 4 | - 5.2 |
Andrey Andreev | 6e3d68e | 2015-01-10 19:27:10 +0200 | [diff] [blame] | 5 | - 5.3.3 |
Taufan Aditya | 3a63e44 | 2012-02-17 23:28:17 +0700 | [diff] [blame] | 6 | - 5.4 |
sv3tli0 | bf09baf | 2013-10-29 10:19:11 +0200 | [diff] [blame] | 7 | - 5.5 |
Andrey Andreev | d56ecf5 | 2014-02-11 20:31:51 +0200 | [diff] [blame] | 8 | - 5.6 |
Fred Emmott | c75cb69 | 2014-01-14 10:29:36 -0800 | [diff] [blame] | 9 | - hhvm |
Alex Bilbie | 88e3857 | 2012-09-12 18:45:21 +0200 | [diff] [blame] | 10 | |
Taufan Aditya | a8a2e33 | 2012-03-29 03:56:46 +0700 | [diff] [blame] | 11 | env: |
| 12 | - DB=mysql |
Andrey Andreev | 79980e4 | 2012-11-25 16:32:05 +0200 | [diff] [blame] | 13 | - DB=mysqli |
Taufan Aditya | a8a2e33 | 2012-03-29 03:56:46 +0700 | [diff] [blame] | 14 | - DB=pgsql |
| 15 | - DB=sqlite |
Taufan Aditya | 6a96bf7 | 2012-04-04 19:13:03 +0700 | [diff] [blame] | 16 | - DB=pdo/mysql |
| 17 | - DB=pdo/pgsql |
| 18 | - DB=pdo/sqlite |
Taufan Aditya | a8a2e33 | 2012-03-29 03:56:46 +0700 | [diff] [blame] | 19 | |
Josh Kalderimis | d6e15fe | 2014-11-25 18:09:47 +0100 | [diff] [blame] | 20 | sudo: false |
| 21 | |
Taufan Aditya | 3a63e44 | 2012-02-17 23:28:17 +0700 | [diff] [blame] | 22 | before_script: |
Dan Bernardic | d24652d | 2015-01-11 22:01:23 -0600 | [diff] [blame^] | 23 | - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.2' ]; then pear channel-discover pear.bovigo.org && pear install bovigo/vfsStream-beta; else composer install --dev --no-progress; fi" |
Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 24 | - sh -c "if [ '$DB' = 'pgsql' ] || [ '$DB' = 'pdo/pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS ci_test;' -U postgres; fi" |
| 25 | - sh -c "if [ '$DB' = 'pgsql' ] || [ '$DB' = 'pdo/pgsql' ]; then psql -c 'create database ci_test;' -U postgres; fi" |
Andrey Andreev | b8c4e48 | 2012-11-25 16:35:07 +0200 | [diff] [blame] | 26 | - sh -c "if [ '$DB' = 'mysql' ] || [ '$DB' = 'mysqli' ] || [ '$DB' = 'pdo/mysql' ]; then mysql -e 'create database IF NOT EXISTS ci_test;'; fi" |
Taufan Aditya | 3a63e44 | 2012-02-17 23:28:17 +0700 | [diff] [blame] | 27 | |
Andrey Andreev | 2a86f07 | 2014-10-28 21:38:09 +0200 | [diff] [blame] | 28 | script: phpunit -d zend.enable_gc=0 -d date.timezone=UTC --coverage-text --configuration tests/travis/$DB.phpunit.xml |
Phil Sturgeon | 15a29e1 | 2012-03-14 10:51:36 +0000 | [diff] [blame] | 29 | |
Fred Emmott | 2e8ee6e | 2014-01-14 11:12:35 -0800 | [diff] [blame] | 30 | matrix: |
| 31 | allow_failures: |
| 32 | - php: hhvm |
Fred Emmott | 8e93b79 | 2014-01-16 10:59:31 -0800 | [diff] [blame] | 33 | exclude: |
| 34 | - php: hhvm |
Fred Emmott | 8e93b79 | 2014-01-16 10:59:31 -0800 | [diff] [blame] | 35 | env: DB=pgsql |
Andrey Andreev | 048a388 | 2014-02-20 18:47:28 +0200 | [diff] [blame] | 36 | - php: hhvm |
Fred Emmott | 8e93b79 | 2014-01-16 10:59:31 -0800 | [diff] [blame] | 37 | env: DB=pdo/pgsql |
Dan Bernardic | d24652d | 2015-01-11 22:01:23 -0600 | [diff] [blame^] | 38 | - php: 5.2 |
| 39 | env: DB=sqlite |
| 40 | - php: 5.2 |
| 41 | env: DB=pdo/sqlite |
Fred Emmott | 2e8ee6e | 2014-01-14 11:12:35 -0800 | [diff] [blame] | 42 | |
Taufan Aditya | 0219750 | 2012-03-10 16:39:50 +0700 | [diff] [blame] | 43 | branches: |
Phil Sturgeon | 15a29e1 | 2012-03-14 10:51:36 +0000 | [diff] [blame] | 44 | only: |
Andrey Andreev | fa4af2c | 2012-07-19 15:15:17 +0300 | [diff] [blame] | 45 | - develop |
Josh Kalderimis | d6e15fe | 2014-11-25 18:09:47 +0100 | [diff] [blame] | 46 | - /^feature\/.+$/ |