-
Notifications
You must be signed in to change notification settings - Fork 123
/
.travis.yml
35 lines (28 loc) · 832 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
27
28
29
30
31
32
33
34
35
language: php
sudo: false
php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
matrix:
allow_failures:
- php: 7.0
- php: hhvm
include:
- php: 5.4
env:
- COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
- PHPUNIT_FLAGS="--coverage-text --coverage-clover=coverage.clover"
- COVERAGE=true
cache:
directories:
- $HOME/.composer/cache
install:
- if [[ "$TRAVIS_PHP_VERSION" == "hhvm" ]]; then composer require mongofill/mongofill=dev-master --no-update; fi
- travis_retry composer update --no-progress --no-plugins ${COMPOSER_FLAGS}
script: phpunit ${PHPUNIT_FLAGS}
after_script:
- if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [[ "$COVERAGE" = true ]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi