forked from tymondesigns/jwt-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (37 loc) · 1.22 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
sudo: false
cache:
directories:
- $HOME/.composer/cache
language: php
php:
- hhvm
env:
global:
- laravel='*'
matrix:
include:
- php: 5.5.9
env: laravel='5.1'
- php: 5.5.9
env: laravel='5.2'
- php: 5.6
env: laravel='5.1'
- php: 5.6
env: laravel='5.2'
- php: 7.0
env: laravel='5.1'
- php: 7.0
env: laravel='5.2'
fast_finish: true
before_install:
- if [[ $laravel != '5.1' ]]; then pip install --user codecov; fi
before_script:
- travis_retry composer self-update
- if [[ $laravel = '*' ]]; then travis_retry composer install --prefer-dist --no-interaction; fi
- if [[ $laravel = '5.1' ]]; then travis_retry composer require "illuminate/contracts=5.1.*" --prefer-dist --no-interaction; fi
- if [[ $laravel = '5.2' ]]; then travis_retry composer require "illuminate/contracts=5.2.*" --prefer-dist --no-interaction; fi
script:
- if [[ $laravel = '5.1' ]]; then vendor/bin/phpunit --verbose --coverage-text --coverage-clover=coverage.xml --exclude-group laravel-5.2; fi
- if [[ $laravel = '5.2' ]]; then vendor/bin/phpunit --verbose --coverage-text --coverage-clover=coverage.xml; fi
after_success:
- if [[ $laravel != '5.1' ]]; then codecov; fi