Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit b64db41

Browse files
committed
[travis] added php 7.3 build
1 parent e383f04 commit b64db41

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.travis.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ env:
1818

1919
matrix:
2020
fast_finish: true
21+
allow_failures:
22+
- php: 7.2
23+
env: COVERAGE=yes
2124
include:
22-
- php: '5.6'
23-
- php: '7.0'
24-
- php: '7.1'
25-
- php: '7.2'
26-
- php: '7.2'
25+
- php: 5.6
26+
- php: 7.0
27+
- php: 7.1
28+
- php: 7.2
29+
- php: 7.3
30+
- php: 7.2
2731
env: COVERAGE=yes
2832

2933
services:
@@ -32,14 +36,14 @@ services:
3236
before_install:
3337
- sudo apt-get update > /dev/null
3438
- "mongo --eval 'db.runCommand({setParameter: 1, textSearchEnabled: true})' admin"
35-
- if [[ $COVERAGE != yes ]]; then phpenv config-rm xdebug.ini; fi;
39+
- if [[ $COVERAGE != yes ]]; then phpenv config-rm xdebug.ini || echo "xdebug not enabled"; fi;
3640
- pecl channel-update pecl.php.net
3741

3842
install:
3943
# install php packages required for running YAWIK phpunit tests
4044
- pecl install -f ${PECLMONGO}
4145
- phpenv config-add .travis/phpenv.ini
42-
- COMPOSER_MEMORY_LIMIT=-1 composer install
46+
- COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-source
4347

4448
before_script:
4549
# behat preparation
@@ -52,10 +56,10 @@ before_script:
5256

5357
script:
5458
- 'if [[ $COVERAGE = yes ]]; then
55-
./vendor/bin/phpunit --verbose --coverage-clover=build/logs/clover.xml --coverage-php=build/logs/clover.serialized;
59+
composer coverage;
5660
else
57-
./vendor/bin/phpunit --verbose;
58-
./vendor/bin/behat;
61+
composer test;
62+
composer behat;
5963
fi'
6064

6165
after_failure:

0 commit comments

Comments
 (0)