-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
26 lines (20 loc) · 850 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
language: php
php:
- 5.5.9
- 5.5
- 5.6
- 7.0
- hhvm
sudo: false
before_install:
- composer self-update
- composer global require hirak/prestissimo --prefer-dist --no-interaction --no-progress
install:
- travis_retry composer install --prefer-dist --no-interaction --no-progress
script:
- if [ "$TRAVIS_PHP_VERSION" = "hhvm" ]; then vendor/bin/phpunit; fi
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpunit --coverage-clover build/clover.xml; fi
after_script:
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then vendor/bin/phpunit --coverage-clover build/clover.xml --whitelist src; fi;
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi;
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover build/clover.xml; fi;