blob: ba2d6b31dfb0dc0e16d1c397f9199fa76ae75929 [file] [log] [blame]
Taufan Aditya3a63e442012-02-17 23:28:17 +07001language: php
2
Timothy Warrena963fbf2012-03-23 10:11:07 -04003php:
Andrey Andreevfd8349f2016-05-09 12:10:24 +03004 - 5.3
Taufan Aditya3a63e442012-02-17 23:28:17 +07005 - 5.4
sv3tli0bf09baf2013-10-29 10:19:11 +02006 - 5.5
Andrey Andreevd56ecf52014-02-11 20:31:51 +02007 - 5.6
Andrey Andreev2fb15512016-08-19 19:26:27 +03008 - 7.0
9 - 7.1
Fred Emmottc75cb692014-01-14 10:29:36 -080010 - hhvm
Alex Bilbie88e38572012-09-12 18:45:21 +020011
Taufan Adityaa8a2e332012-03-29 03:56:46 +070012env:
13 - DB=mysql
Andrey Andreev79980e42012-11-25 16:32:05 +020014 - DB=mysqli
Taufan Adityaa8a2e332012-03-29 03:56:46 +070015 - DB=pgsql
16 - DB=sqlite
Taufan Aditya6a96bf72012-04-04 19:13:03 +070017 - DB=pdo/mysql
18 - DB=pdo/pgsql
19 - DB=pdo/sqlite
Taufan Adityaa8a2e332012-03-29 03:56:46 +070020
Josh Kalderimisd6e15fe2014-11-25 18:09:47 +010021sudo: false
22
Taufan Aditya3a63e442012-02-17 23:28:17 +070023before_script:
Andrey Andreev005ca972016-07-26 21:17:41 +030024 - sh -c "composer install --dev --no-progress"
Taufan Aditya44015c82012-04-04 19:38:16 +070025 - sh -c "if [ '$DB' = 'pgsql' ] || [ '$DB' = 'pdo/pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS ci_test;' -U postgres; fi"
26 - 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 +020027 - 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 +070028
Andrey Andreev2a86f072014-10-28 21:38:09 +020029script: 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 +000030
Fred Emmott2e8ee6e2014-01-14 11:12:35 -080031matrix:
32 allow_failures:
Andrey Andreevfd8349f2016-05-09 12:10:24 +030033 - php: 5.3
Fred Emmott2e8ee6e2014-01-14 11:12:35 -080034 - php: hhvm
Andrey Andreev2fb15512016-08-19 19:26:27 +030035 - php: 7.1
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
Fred Emmott2e8ee6e2014-01-14 11:12:35 -080045
Taufan Aditya02197502012-03-10 16:39:50 +070046branches:
Phil Sturgeon15a29e12012-03-14 10:51:36 +000047 only:
Andrey Andreevfa4af2c2012-07-19 15:15:17 +030048 - develop
Andrey Andreev4e0d88a2015-09-01 14:02:07 +030049 - 3.0-stable
Andrey Andreevd293fdd2016-07-26 21:04:01 +030050 - 3.1-stable
Josh Kalderimisd6e15fe2014-11-25 18:09:47 +010051 - /^feature\/.+$/