blob: 3a823f7b02330f3ddfc044f989721e28425382be [file] [log] [blame]
Taufan Aditya3a63e442012-02-17 23:28:17 +07001language: php
2
Timothy Warrena963fbf2012-03-23 10:11:07 -04003php:
Dan Bernardicd24652d2015-01-11 22:01:23 -06004 - 5.2
Andrey Andreev6e3d68e2015-01-10 19:27:10 +02005 - 5.3.3
Taufan Aditya3a63e442012-02-17 23:28:17 +07006 - 5.4
sv3tli0bf09baf2013-10-29 10:19:11 +02007 - 5.5
Andrey Andreevd56ecf52014-02-11 20:31:51 +02008 - 5.6
Fred Emmottc75cb692014-01-14 10:29:36 -08009 - hhvm
Alex Bilbie88e38572012-09-12 18:45:21 +020010
Taufan Adityaa8a2e332012-03-29 03:56:46 +070011env:
12 - DB=mysql
Andrey Andreev79980e42012-11-25 16:32:05 +020013 - DB=mysqli
Taufan Adityaa8a2e332012-03-29 03:56:46 +070014 - DB=pgsql
15 - DB=sqlite
Taufan Aditya6a96bf72012-04-04 19:13:03 +070016 - DB=pdo/mysql
17 - DB=pdo/pgsql
18 - DB=pdo/sqlite
Taufan Adityaa8a2e332012-03-29 03:56:46 +070019
Josh Kalderimisd6e15fe2014-11-25 18:09:47 +010020sudo: false
21
Taufan Aditya3a63e442012-02-17 23:28:17 +070022before_script:
Dan Bernardicd24652d2015-01-11 22:01:23 -060023 - 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 Aditya44015c82012-04-04 19:38:16 +070024 - 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 Andreevb8c4e482012-11-25 16:35:07 +020026 - sh -c "if [ '$DB' = 'mysql' ] || [ '$DB' = 'mysqli' ] || [ '$DB' = 'pdo/mysql' ]; then mysql -e 'create database IF NOT EXISTS ci_test;'; fi"
Taufan Aditya3a63e442012-02-17 23:28:17 +070027
Andrey Andreev2a86f072014-10-28 21:38:09 +020028script: phpunit -d zend.enable_gc=0 -d date.timezone=UTC --coverage-text --configuration tests/travis/$DB.phpunit.xml
Phil Sturgeon15a29e12012-03-14 10:51:36 +000029
Fred Emmott2e8ee6e2014-01-14 11:12:35 -080030matrix:
31 allow_failures:
32 - php: hhvm
Fred Emmott8e93b792014-01-16 10:59:31 -080033 exclude:
34 - php: hhvm
Fred Emmott8e93b792014-01-16 10:59:31 -080035 env: DB=pgsql
Andrey Andreev048a3882014-02-20 18:47:28 +020036 - php: hhvm
Fred Emmott8e93b792014-01-16 10:59:31 -080037 env: DB=pdo/pgsql
Dan Bernardicd24652d2015-01-11 22:01:23 -060038 - php: 5.2
39 env: DB=sqlite
40 - php: 5.2
41 env: DB=pdo/sqlite
Fred Emmott2e8ee6e2014-01-14 11:12:35 -080042
Taufan Aditya02197502012-03-10 16:39:50 +070043branches:
Phil Sturgeon15a29e12012-03-14 10:51:36 +000044 only:
Andrey Andreevfa4af2c2012-07-19 15:15:17 +030045 - develop
Josh Kalderimisd6e15fe2014-11-25 18:09:47 +010046 - /^feature\/.+$/