Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.

Commit ec66d8b

Browse files
committed
fix travis build
1 parent b2cc0b7 commit ec66d8b

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

.travis.yml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
language: php
2-
3-
sudo: false
4-
5-
cache:
6-
directories:
7-
- $HOME/.composer/cache
8-
9-
env:
10-
- DEPENDENCIES=""
11-
- DEPENDENCIES="--prefer-lowest --prefer-stable"
12-
13-
php:
14-
- 7.0
15-
- 7.1
16-
17-
matrix:
18-
fast_finish: true
19-
include:
20-
- php: 7.1
21-
env: COVERAGE="1"
22-
allow_failures:
23-
- php: 7.1
24-
env: COVERAGE="1"
25-
26-
install:
27-
- travis_retry composer update --no-interaction --prefer-dist $DEPENDENCIES
28-
- if [ "$COVERAGE" != "1" ]; then phpenv config-rm xdebug.ini; fi
29-
30-
script:
31-
- if [ "$COVERAGE" != "1" ]; then composer check; fi
32-
- if [ "$COVERAGE" == "1" ]; then ./vendor/bin/phpunit --coverage-clover=./coverage.xml; fi
33-
34-
after_success:
35-
- >
36-
if [ $COVERAGE == "1" ]; then
37-
wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
38-
&& php ./coveralls.phar --verbose
39-
|| true; fi
1+
language: php
2+
3+
sudo: false
4+
5+
cache:
6+
directories:
7+
- $HOME/.composer/cache
8+
9+
env:
10+
- DEPENDENCIES=""
11+
- DEPENDENCIES="--prefer-lowest --prefer-stable"
12+
13+
php:
14+
- 7.1
15+
- 7.2
16+
17+
matrix:
18+
fast_finish: true
19+
include:
20+
- php: 7.2
21+
env: COVERAGE="1"
22+
allow_failures:
23+
- php: 7.2
24+
env: COVERAGE="1"
25+
26+
install:
27+
- travis_retry composer update --no-interaction --prefer-dist $DEPENDENCIES
28+
- if [ "$COVERAGE" != "1" ]; then phpenv config-rm xdebug.ini; fi
29+
30+
script:
31+
- if [ "$COVERAGE" != "1" ]; then composer check; fi
32+
- if [ "$COVERAGE" == "1" ]; then ./vendor/bin/phpunit --coverage-clover=./coverage.xml; fi
33+
34+
after_success:
35+
- >
36+
if [ $COVERAGE == "1" ]; then
37+
wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
38+
&& php ./coveralls.phar --verbose
39+
|| true; fi

0 commit comments

Comments
 (0)