-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (33 loc) · 1.16 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
36
37
38
39
40
41
42
43
44
dist: trusty
sudo: false
language: php
php:
- 7.0
- 7.1
- nightly
cache:
directories:
- $HOME/.composer/cache/files
env:
- LARAVEL_VERSION="5.3.*"
- LARAVEL_VERSION="5.3.*" COMPOSER_FLAGS="--prefer-lowest"
- LARAVEL_VERSION="5.4.*"
- LARAVEL_VERSION="5.4.*" COMPOSER_FLAGS="--prefer-lowest"
- LARAVEL_VERSION="dev-master"
matrix:
fast_finish: true
allow_failures:
- php: nightly
- env: LARAVEL_VERSION="dev-master"
before_install:
# - if [[ "${TRAVIS_PHP_VERSION::4}" == 'hhvm' ]]; then echo hhvm.php7.all=1 >> /etc/hhvm/php.ini; fi
# - if [[ ! ("${TRAVIS_PHP_VERSION}" == "nightly" || "${TRAVIS_PHP_VERSION::4}" == "hhvm") ]]; then phpenv config-rm xdebug.ini; fi;
- composer self-update
- if [ "${LARAVEL_VERSION}" != "" ]; then composer require --no-update "laravel/laravel:${LARAVEL_VERSION}"; fi;
install:
- composer update ${COMPOSER_FLAGS} --prefer-source
script:
- vendor/bin/phpunit --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover