forked from lukaswhite/geotools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (27 loc) · 1.01 KB
/
.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
php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
sudo: false
cache:
directories:
- vendor
- $HOME/.composer/cache
matrix:
allow_failures:
- php: hhvm
services: mongodb
before_script:
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" && "$TRAVIS_PHP_VERSION" != "7.0" ]; then echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'
- sh -c 'echo 'extension = "memcached.so"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini'
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source
script:
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpunit --coverage-text --coverage-clover=coverage.clover; fi
- if [[ "$TRAVIS_PHP_VERSION" == "hhvm" ]]; then phpunit; fi
after_script:
- 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 coverage.clover; fi