forked from avto-dev/back2front-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
84 lines (70 loc) · 2.03 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
language: php
cache:
directories:
- $HOME/.composer/cache
env:
global:
- setup=basic
- coverage=false
- laravel=default
sudo: false
branches:
except:
- /analysis-.*/
before_install:
- if [[ $coverage = 'false' ]]; then phpenv config-rm xdebug.ini || true; fi
- composer global require hirak/prestissimo --update-no-dev
install:
- if [[ $setup = 'basic' ]]; then travis_retry composer update --prefer-dist --no-interaction --no-suggest; fi
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --no-suggest --prefer-stable; fi
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --no-suggest --prefer-lowest; fi
- if [[ $laravel != 'default' ]]; then travis_retry composer require --dev --update-with-dependencies --prefer-dist --no-interaction --no-suggest laravel/laravel "$laravel"; fi
- composer info | grep -e laravel/laravel -e phpunit/phpunit -e phpstan/phpstan
script:
- if [[ $coverage = 'true' ]]; then composer test-cover; else composer test; fi
after_success:
- if [[ $coverage = 'true' ]]; then bash <(curl -s https://codecov.io/bash); fi
matrix:
include:
- language: node_js
cache:
yarn: true
directories:
- node_modules
node_js: stable
install:
- npm install -g codecov
- yarn install
script:
- yarn test-cover
after_success:
- codecov
- php: 7.1.3
env: setup=lowest
- php: 7.1.3
env: laravel=5.5
- php: 7.1.3
env: laravel=5.6
- php: 7.1.3
env: coverage=true
- php: 7.2
env: setup=lowest
- php: 7.2
env: laravel=5.8
- php: 7.2
env: coverage=true laravel=6.*
- php: 7.3
env: setup=lowest
- php: 7.3
env: laravel=5.5
- php: 7.3
env: laravel=5.6
- php: 7.3
env: laravel=5.7
- php: 7.3
env: laravel=5.8
- php: 7.3
env: coverage=true laravel=6.*
- php: nightly
allow_failures:
- php: nightly