forked from LaraCrafts/laravel-url-shortener
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (41 loc) · 1.14 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
45
46
47
48
language: php
cache:
directories:
- $HOME/.composer/cache
jobs:
include:
- php: 7.1
env: ILLUMINATE_VERSION=5.1.*
- php: 7.1
env: ILLUMINATE_VERSION=5.2.*
- php: 7.1
env: ILLUMINATE_VERSION=5.3.*
- php: 7.1
env: ILLUMINATE_VERSION=5.4.*
- php: 7.1
env: ILLUMINATE_VERSION=5.5.*
- php: 7.1
env: ILLUMINATE_VERSION=5.6.*
- php: 7.1
env: ILLUMINATE_VERSION=5.7.*
- php: 7.1
env: ILLUMINATE_VERSION=5.8.*
- php: 7.2
env: ILLUMINATE_VERSION=6.*
- php: 7.2
env: ILLUMINATE_VERSION=7.*
dist: xenial
before_install:
- composer require illuminate/support:${ILLUMINATE_VERSION} --no-update
install:
- composer install --no-interaction --no-progress --no-suggest --prefer-dist
script:
- |
if [ $TRAVIS_BRANCH == 'master' ]; then
./vendor/bin/phpunit --coverage-clover=coverage.clover --verbose
else
./vendor/bin/phpunit --coverage-clover=coverage.clover --testsuite=Unit --verbose
fi
after_script:
- wget -nv https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover