forked from tymondesigns/jwt-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (45 loc) · 1.39 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
49
50
51
52
53
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.5
env: laravel='5.1'
- php: 5.5
env: laravel='5.2'
- php: 5.6
env: laravel='5.1'
- php: 5.6
env: laravel='5.2'
- php: 5.6
env: laravel='5.3'
- php: 7.0
env: laravel='5.1'
- php: 7.0
env: laravel='5.2'
- php: 7.0
env: laravel='5.3'
fast_finish: true
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
- if [[ $laravel = '5.3' ]]; then travis_retry composer require "illuminate/contracts=5.3.*" --prefer-dist --no-interaction; fi
script:
- if [[ $laravel = '5.1' ]]; then composer test:ci -- --exclude-group laravel-5.2; fi
- if [[ $laravel = '5.2' ]]; then composer test:ci; fi
- if [[ $laravel = '5.3' ]]; then composer test:ci; fi
after_success:
- if [[ $laravel = '5.3' ]]; then bash <(curl -s https://codecov.io/bash); fi