Skip to content

Commit f9e23e3

Browse files
committed
Add Travis CI configuration
1 parent 7fb6de3 commit f9e23e3

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.travis.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
language: php
2+
3+
php:
4+
- 5.5
5+
- 5.6
6+
- 7.0
7+
- 7.1
8+
- 7.2
9+
- 7.3
10+
- nightly
11+
12+
matrix:
13+
allow_failures:
14+
- php: nightly
15+
fast_finish: true
16+
17+
cache:
18+
directories:
19+
- $HOME/.composer/cache
20+
21+
install:
22+
- travis_retry composer update --no-interaction --no-progress --no-suggest --prefer-dist
23+
24+
script:
25+
- composer test
26+
27+
after_script:
28+
- |
29+
if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]
30+
then
31+
travis_retry wget --no-verbose https://scrutinizer-ci.com/ocular.phar
32+
php ocular.phar code-coverage:upload --format=php-clover build/clover.xml
33+
fi

0 commit comments

Comments
 (0)