-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
30 lines (26 loc) · 931 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
language: php
dist: trusty
sudo: false
matrix:
include:
- php: 7.1
env: LARAVEL_VERSION=5.4.*
- php: 7.1
env: LARAVEL_VERSION=5.5.*
- php: 7.1
env: LARAVEL_VERSION=5.6.*
- php: 7.2
env: LARAVEL_VERSION=5.4.*
- php: 7.2
env: LARAVEL_VERSION=5.4.*
- php: 7.2
env: LARAVEL_VERSION=5.6.*
install:
- composer require "laravel/framework:${LARAVEL_VERSION}" --no-update -n
- travis_retry composer install --no-suggest --prefer-dist -n -o
script:
- if [ "$TRAVIS_PHP_VERSION" != "7.0" ]; then vendor/bin/phpunit; fi
- if [ "$TRAVIS_PHP_VERSION" == "7.0" ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; fi
after_script:
- 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 build/logs/clover.xml; fi