-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
32 lines (26 loc) · 866 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
language: php
sudo: false
php:
- '7.0'
- '7.1'
- nightly
matrix:
include:
- php: 7.0
env: deps=low
fast_finish: true
allow_failures:
- php: nightly
cache:
directories:
- $HOME/.composer/cache
before_script:
- if [ -z "$deps" ]; then composer install --ignore-platform-reqs --dev --prefer-dist --no-interaction; fi;
- if [ "$deps" == "low" ]; then composer update --ignore-platform-reqs --prefer-lowest --prefer-dist --prefer-stable --no-interaction; fi;
script:
- composer coverage
- if [ "${TRAVIS_PHP_VERSION}" == "7.0" ]; then composer phpmd; fi;
after_script:
- echo $TRAVIS_PHP_VERSION
- if [ "${TRAVIS_PHP_VERSION}" == "7.0" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi;
- if [ "${TRAVIS_PHP_VERSION}" == "7.0" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi;