blob: 88c7742834f252a92b2cb9c4551af56721aedf61 [file] [log] [blame]
Taufan Aditya3a63e442012-02-17 23:28:17 +07001language: php
Andrey Andreev146b1312017-09-04 16:24:45 +03002dist: precise
Taufan Aditya3a63e442012-02-17 23:28:17 +07003
Timothy Warrena963fbf2012-03-23 10:11:07 -04004php:
Andrey Andreevfd8349f2016-05-09 12:10:24 +03005 - 5.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
Andrey Andreev2fb15512016-08-19 19:26:27 +03009 - 7.0
10 - 7.1
Andrey Andreevdf17a892017-11-09 16:40:47 +020011 - 7.2
Andrey Andreeve176de52017-11-09 18:16:58 +020012 - master
Fred Emmottc75cb692014-01-14 10:29:36 -080013 - hhvm
Alex Bilbie88e38572012-09-12 18:45:21 +020014
Taufan Adityaa8a2e332012-03-29 03:56:46 +070015env:
16 - DB=mysql
Andrey Andreev79980e42012-11-25 16:32:05 +020017 - DB=mysqli
Taufan Adityaa8a2e332012-03-29 03:56:46 +070018 - DB=pgsql
19 - DB=sqlite
Taufan Aditya6a96bf72012-04-04 19:13:03 +070020 - DB=pdo/mysql
21 - DB=pdo/pgsql
22 - DB=pdo/sqlite
Taufan Adityaa8a2e332012-03-29 03:56:46 +070023
Josh Kalderimisd6e15fe2014-11-25 18:09:47 +010024sudo: false
25
Taufan Aditya3a63e442012-02-17 23:28:17 +070026before_script:
Andrey Andreev005ca972016-07-26 21:17:41 +030027 - sh -c "composer install --dev --no-progress"
Taufan Aditya44015c82012-04-04 19:38:16 +070028 - sh -c "if [ '$DB' = 'pgsql' ] || [ '$DB' = 'pdo/pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS ci_test;' -U postgres; fi"
29 - 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 +020030 - 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 +070031
Andrey Andreevedbe7912017-01-19 15:35:51 +020032script: php -d zend.enable_gc=0 -d date.timezone=UTC -d mbstring.func_overload=7 -d mbstring.internal_encoding=UTF-8 vendor/bin/phpunit --coverage-text --configuration tests/travis/$DB.phpunit.xml
Phil Sturgeon15a29e12012-03-14 10:51:36 +000033
Fred Emmott2e8ee6e2014-01-14 11:12:35 -080034matrix:
35 allow_failures:
36 - php: hhvm
Andrey Andreeve176de52017-11-09 18:16:58 +020037 - php: master
Fred Emmott8e93b792014-01-16 10:59:31 -080038 exclude:
39 - php: hhvm
Fred Emmott8e93b792014-01-16 10:59:31 -080040 env: DB=pgsql
Andrey Andreev048a3882014-02-20 18:47:28 +020041 - php: hhvm
Fred Emmott8e93b792014-01-16 10:59:31 -080042 env: DB=pdo/pgsql
Andrey Andreev2fb15512016-08-19 19:26:27 +030043 - php: 7.0
Andrey Andreevb5925ec2015-02-26 10:06:54 +020044 env: DB=mysql
Andrey Andreev2fb15512016-08-19 19:26:27 +030045 - php: 7.1
46 env: DB=mysql
Andrey Andreev4d1a9bd2017-11-09 17:30:41 +020047 - php: 7.2
48 env: DB=mysql
Andrey Andreeve176de52017-11-09 18:16:58 +020049 - php: master
50 env: DB=mysql
Fred Emmott2e8ee6e2014-01-14 11:12:35 -080051
Taufan Aditya02197502012-03-10 16:39:50 +070052branches:
Phil Sturgeon15a29e12012-03-14 10:51:36 +000053 only:
Andrey Andreevfa4af2c2012-07-19 15:15:17 +030054 - develop
Andrey Andreev4e0d88a2015-09-01 14:02:07 +030055 - 3.0-stable
Andrey Andreevd293fdd2016-07-26 21:04:01 +030056 - 3.1-stable
Josh Kalderimisd6e15fe2014-11-25 18:09:47 +010057 - /^feature\/.+$/