Taufan Aditya | 3a63e44 | 2012-02-17 23:28:17 +0700 | [diff] [blame] | 1 | language: php |
Andrey Andreev | 146b131 | 2017-09-04 16:24:45 +0300 | [diff] [blame] | 2 | dist: precise |
Taufan Aditya | 3a63e44 | 2012-02-17 23:28:17 +0700 | [diff] [blame] | 3 | |
Timothy Warren | a963fbf | 2012-03-23 10:11:07 -0400 | [diff] [blame] | 4 | php: |
Andrey Andreev | fd8349f | 2016-05-09 12:10:24 +0300 | [diff] [blame] | 5 | - 5.3 |
Taufan Aditya | 3a63e44 | 2012-02-17 23:28:17 +0700 | [diff] [blame] | 6 | - 5.4 |
sv3tli0 | bf09baf | 2013-10-29 10:19:11 +0200 | [diff] [blame] | 7 | - 5.5 |
Andrey Andreev | d56ecf5 | 2014-02-11 20:31:51 +0200 | [diff] [blame] | 8 | - 5.6 |
Andrey Andreev | 2fb1551 | 2016-08-19 19:26:27 +0300 | [diff] [blame] | 9 | - 7.0 |
10 | - 7.1 | ||||
Andrey Andreev | df17a89 | 2017-11-09 16:40:47 +0200 | [diff] [blame] | 11 | - 7.2 |
Andrey Andreev | c21c035 | 2019-01-04 14:54:53 +0200 | [diff] [blame^] | 12 | - 7.3 |
Andrey Andreev | e176de5 | 2017-11-09 18:16:58 +0200 | [diff] [blame] | 13 | - master |
Fred Emmott | c75cb69 | 2014-01-14 10:29:36 -0800 | [diff] [blame] | 14 | - hhvm |
Alex Bilbie | 88e3857 | 2012-09-12 18:45:21 +0200 | [diff] [blame] | 15 | |
Taufan Aditya | a8a2e33 | 2012-03-29 03:56:46 +0700 | [diff] [blame] | 16 | env: |
17 | - DB=mysql | ||||
Andrey Andreev | 79980e4 | 2012-11-25 16:32:05 +0200 | [diff] [blame] | 18 | - DB=mysqli |
Taufan Aditya | a8a2e33 | 2012-03-29 03:56:46 +0700 | [diff] [blame] | 19 | - DB=pgsql |
20 | - DB=sqlite | ||||
Taufan Aditya | 6a96bf7 | 2012-04-04 19:13:03 +0700 | [diff] [blame] | 21 | - DB=pdo/mysql |
22 | - DB=pdo/pgsql | ||||
23 | - DB=pdo/sqlite | ||||
Taufan Aditya | a8a2e33 | 2012-03-29 03:56:46 +0700 | [diff] [blame] | 24 | |
Josh Kalderimis | d6e15fe | 2014-11-25 18:09:47 +0100 | [diff] [blame] | 25 | sudo: false |
26 | |||||
Taufan Aditya | 3a63e44 | 2012-02-17 23:28:17 +0700 | [diff] [blame] | 27 | before_script: |
Andrey Andreev | 005ca97 | 2016-07-26 21:17:41 +0300 | [diff] [blame] | 28 | - sh -c "composer install --dev --no-progress" |
Taufan Aditya | 44015c8 | 2012-04-04 19:38:16 +0700 | [diff] [blame] | 29 | - sh -c "if [ '$DB' = 'pgsql' ] || [ '$DB' = 'pdo/pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS ci_test;' -U postgres; fi" |
30 | - sh -c "if [ '$DB' = 'pgsql' ] || [ '$DB' = 'pdo/pgsql' ]; then psql -c 'create database ci_test;' -U postgres; fi" | ||||
Andrey Andreev | b8c4e48 | 2012-11-25 16:35:07 +0200 | [diff] [blame] | 31 | - sh -c "if [ '$DB' = 'mysql' ] || [ '$DB' = 'mysqli' ] || [ '$DB' = 'pdo/mysql' ]; then mysql -e 'create database IF NOT EXISTS ci_test;'; fi" |
Taufan Aditya | 3a63e44 | 2012-02-17 23:28:17 +0700 | [diff] [blame] | 32 | |
Andrey Andreev | edbe791 | 2017-01-19 15:35:51 +0200 | [diff] [blame] | 33 | script: 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 Sturgeon | 15a29e1 | 2012-03-14 10:51:36 +0000 | [diff] [blame] | 34 | |
Fred Emmott | 2e8ee6e | 2014-01-14 11:12:35 -0800 | [diff] [blame] | 35 | matrix: |
36 | allow_failures: | ||||
37 | - php: hhvm | ||||
Andrey Andreev | e176de5 | 2017-11-09 18:16:58 +0200 | [diff] [blame] | 38 | - php: master |
Fred Emmott | 8e93b79 | 2014-01-16 10:59:31 -0800 | [diff] [blame] | 39 | exclude: |
40 | - php: hhvm | ||||
Fred Emmott | 8e93b79 | 2014-01-16 10:59:31 -0800 | [diff] [blame] | 41 | env: DB=pgsql |
Andrey Andreev | 048a388 | 2014-02-20 18:47:28 +0200 | [diff] [blame] | 42 | - php: hhvm |
Fred Emmott | 8e93b79 | 2014-01-16 10:59:31 -0800 | [diff] [blame] | 43 | env: DB=pdo/pgsql |
Andrey Andreev | 2fb1551 | 2016-08-19 19:26:27 +0300 | [diff] [blame] | 44 | - php: 7.0 |
Andrey Andreev | b5925ec | 2015-02-26 10:06:54 +0200 | [diff] [blame] | 45 | env: DB=mysql |
Andrey Andreev | 2fb1551 | 2016-08-19 19:26:27 +0300 | [diff] [blame] | 46 | - php: 7.1 |
47 | env: DB=mysql | ||||
Andrey Andreev | 4d1a9bd | 2017-11-09 17:30:41 +0200 | [diff] [blame] | 48 | - php: 7.2 |
49 | env: DB=mysql | ||||
Andrey Andreev | c21c035 | 2019-01-04 14:54:53 +0200 | [diff] [blame^] | 50 | - php: 7.3 |
51 | env: DB=mysql | ||||
Andrey Andreev | e176de5 | 2017-11-09 18:16:58 +0200 | [diff] [blame] | 52 | - php: master |
53 | env: DB=mysql | ||||
Fred Emmott | 2e8ee6e | 2014-01-14 11:12:35 -0800 | [diff] [blame] | 54 | |
Taufan Aditya | 0219750 | 2012-03-10 16:39:50 +0700 | [diff] [blame] | 55 | branches: |
Phil Sturgeon | 15a29e1 | 2012-03-14 10:51:36 +0000 | [diff] [blame] | 56 | only: |
Andrey Andreev | fa4af2c | 2012-07-19 15:15:17 +0300 | [diff] [blame] | 57 | - develop |
Andrey Andreev | 4e0d88a | 2015-09-01 14:02:07 +0300 | [diff] [blame] | 58 | - 3.0-stable |
Andrey Andreev | d293fdd | 2016-07-26 21:04:01 +0300 | [diff] [blame] | 59 | - 3.1-stable |
Josh Kalderimis | d6e15fe | 2014-11-25 18:09:47 +0100 | [diff] [blame] | 60 | - /^feature\/.+$/ |