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: |
Taufan Aditya | 3a63e44 | 2012-02-17 23:28:17 +0700 | [diff] [blame] | 4 | - 5.3 |
| 5 | - 5.4 |
sv3tli0 | bf09baf | 2013-10-29 10:19:11 +0200 | [diff] [blame] | 6 | - 5.5 |
Fred Emmott | c75cb69 | 2014-01-14 10:29:36 -0800 | [diff] [blame] | 7 | - hhvm |
Alex Bilbie | 88e3857 | 2012-09-12 18:45:21 +0200 | [diff] [blame] | 8 | |
Taufan Aditya | a8a2e33 | 2012-03-29 03:56:46 +0700 | [diff] [blame] | 9 | env: |
| 10 | - DB=mysql |
Andrey Andreev | 79980e4 | 2012-11-25 16:32:05 +0200 | [diff] [blame] | 11 | - DB=mysqli |
Taufan Aditya | a8a2e33 | 2012-03-29 03:56:46 +0700 | [diff] [blame] | 12 | - DB=pgsql |
| 13 | - DB=sqlite |
Taufan Aditya | 6a96bf7 | 2012-04-04 19:13:03 +0700 | [diff] [blame] | 14 | - DB=pdo/mysql |
| 15 | - DB=pdo/pgsql |
| 16 | - DB=pdo/sqlite |
Taufan Aditya | a8a2e33 | 2012-03-29 03:56:46 +0700 | [diff] [blame] | 17 | |
Taufan Aditya | 3a63e44 | 2012-02-17 23:28:17 +0700 | [diff] [blame] | 18 | before_script: |
David Barratt | b63f07a | 2013-02-19 07:19:44 -0500 | [diff] [blame] | 19 | - composer install --dev --no-progress |
Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 20 | - sh -c "if [ '$DB' = 'pgsql' ] || [ '$DB' = 'pdo/pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS ci_test;' -U postgres; fi" |
| 21 | - 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] | 22 | - 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] | 23 | |
Taufan Aditya | 6c7526c | 2012-05-27 13:51:27 +0700 | [diff] [blame] | 24 | script: phpunit --coverage-text --configuration tests/travis/$DB.phpunit.xml |
Phil Sturgeon | 15a29e1 | 2012-03-14 10:51:36 +0000 | [diff] [blame] | 25 | |
Fred Emmott | 2e8ee6e | 2014-01-14 11:12:35 -0800 | [diff] [blame^] | 26 | matrix: |
| 27 | allow_failures: |
| 28 | - php: hhvm |
| 29 | |
Taufan Aditya | 0219750 | 2012-03-10 16:39:50 +0700 | [diff] [blame] | 30 | branches: |
Phil Sturgeon | 15a29e1 | 2012-03-14 10:51:36 +0000 | [diff] [blame] | 31 | only: |
Andrey Andreev | fa4af2c | 2012-07-19 15:15:17 +0300 | [diff] [blame] | 32 | - develop |
Andrey Andreev | 2d5ebf7 | 2013-10-29 13:27:59 +0200 | [diff] [blame] | 33 | - /^feature\/.+$/ |