blob: 8f7838bdfad6e72658ea72afc8f3b4525912f766 [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
Fred Emmottc75cb692014-01-14 10:29:36 -080012 - hhvm
Alex Bilbie88e38572012-09-12 18:45:21 +020013
Taufan Adityaa8a2e332012-03-29 03:56:46 +070014env:
15 - DB=mysql
Andrey Andreev79980e42012-11-25 16:32:05 +020016 - DB=mysqli
Taufan Adityaa8a2e332012-03-29 03:56:46 +070017 - DB=pgsql
18 - DB=sqlite
Taufan Aditya6a96bf72012-04-04 19:13:03 +070019 - DB=pdo/mysql
20 - DB=pdo/pgsql
21 - DB=pdo/sqlite
Taufan Adityaa8a2e332012-03-29 03:56:46 +070022
Josh Kalderimisd6e15fe2014-11-25 18:09:47 +010023sudo: false
24
Taufan Aditya3a63e442012-02-17 23:28:17 +070025before_script:
Andrey Andreev005ca972016-07-26 21:17:41 +030026 - sh -c "composer install --dev --no-progress"
Taufan Aditya44015c82012-04-04 19:38:16 +070027 - sh -c "if [ '$DB' = 'pgsql' ] || [ '$DB' = 'pdo/pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS ci_test;' -U postgres; fi"
28 - 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 +020029 - 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 +070030
Andrey Andreevedbe7912017-01-19 15:35:51 +020031script: 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 +000032
Fred Emmott2e8ee6e2014-01-14 11:12:35 -080033matrix:
34 allow_failures:
35 - php: hhvm
Fred Emmott8e93b792014-01-16 10:59:31 -080036 exclude:
37 - php: hhvm
Fred Emmott8e93b792014-01-16 10:59:31 -080038 env: DB=pgsql
Andrey Andreev048a3882014-02-20 18:47:28 +020039 - php: hhvm
Fred Emmott8e93b792014-01-16 10:59:31 -080040 env: DB=pdo/pgsql
Andrey Andreev2fb15512016-08-19 19:26:27 +030041 - php: 7.0
Andrey Andreevb5925ec2015-02-26 10:06:54 +020042 env: DB=mysql
Andrey Andreev2fb15512016-08-19 19:26:27 +030043 - php: 7.1
44 env: DB=mysql
Andrey Andreev4d1a9bd2017-11-09 17:30:41 +020045 - php: 7.2
46 env: DB=mysql
Fred Emmott2e8ee6e2014-01-14 11:12:35 -080047
Taufan Aditya02197502012-03-10 16:39:50 +070048branches:
Phil Sturgeon15a29e12012-03-14 10:51:36 +000049 only:
Andrey Andreevfa4af2c2012-07-19 15:15:17 +030050 - develop
Andrey Andreev4e0d88a2015-09-01 14:02:07 +030051 - 3.0-stable
Andrey Andreevd293fdd2016-07-26 21:04:01 +030052 - 3.1-stable
Josh Kalderimisd6e15fe2014-11-25 18:09:47 +010053 - /^feature\/.+$/