blob: 5085ba1f7a452f76bcae3c6aba001ae8af3d4a93 [file] [log] [blame]
Taufan Aditya3a63e442012-02-17 23:28:17 +07001language: php
2
Timothy Warrena963fbf2012-03-23 10:11:07 -04003php:
Taufan Aditya3a63e442012-02-17 23:28:17 +07004 - 5.3
5 - 5.4
sv3tli0bf09baf2013-10-29 10:19:11 +02006 - 5.5
Andrey Andreevd56ecf52014-02-11 20:31:51 +02007 - 5.6
Fred Emmottc75cb692014-01-14 10:29:36 -08008 - hhvm
Alex Bilbie88e38572012-09-12 18:45:21 +02009
Taufan Adityaa8a2e332012-03-29 03:56:46 +070010env:
11 - DB=mysql
Andrey Andreev79980e42012-11-25 16:32:05 +020012 - DB=mysqli
Taufan Adityaa8a2e332012-03-29 03:56:46 +070013 - DB=pgsql
14 - DB=sqlite
Taufan Aditya6a96bf72012-04-04 19:13:03 +070015 - DB=pdo/mysql
16 - DB=pdo/pgsql
17 - DB=pdo/sqlite
Taufan Adityaa8a2e332012-03-29 03:56:46 +070018
Taufan Aditya3a63e442012-02-17 23:28:17 +070019before_script:
David Barrattb63f07a2013-02-19 07:19:44 -050020 - composer install --dev --no-progress
Taufan Aditya44015c82012-04-04 19:38:16 +070021 - sh -c "if [ '$DB' = 'pgsql' ] || [ '$DB' = 'pdo/pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS ci_test;' -U postgres; fi"
22 - 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 +020023 - 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 +070024
Andrey Andreev839ee3a2014-02-13 15:32:26 +020025script: phpunit -d zend.enable_gc=0 --coverage-text --configuration tests/travis/$DB.phpunit.xml
Phil Sturgeon15a29e12012-03-14 10:51:36 +000026
Fred Emmott2e8ee6e2014-01-14 11:12:35 -080027matrix:
28 allow_failures:
29 - php: hhvm
Fred Emmott8e93b792014-01-16 10:59:31 -080030 exclude:
31 - php: hhvm
32 env: DB=mysqli
33 env: DB=pgsql
34 env: DB=pdo/pgsql
Fred Emmott2e8ee6e2014-01-14 11:12:35 -080035
Taufan Aditya02197502012-03-10 16:39:50 +070036branches:
Phil Sturgeon15a29e12012-03-14 10:51:36 +000037 only:
Andrey Andreevfa4af2c2012-07-19 15:15:17 +030038 - develop
Andrey Andreev2d5ebf72013-10-29 13:27:59 +020039 - /^feature\/.+$/