forked from rebing/graphql-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (78 loc) · 2.56 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
85
sudo: false
language: php
cache:
directories:
- $HOME/.composer/cache/files
env:
global:
- INSTALL_LARAVEL=0
- INSTALL_LUMEN=0
matrix:
include:
- php: '7.1'
env: LARAVEL='5.5.*'
- php: '7.1'
env: LARAVEL='5.8.*'
- php: '7.2'
env: LARAVEL='5.5.*'
- php: '7.2'
env: LARAVEL='5.8.*'
- php: '7.2'
env: LARAVEL='^6.0'
- php: '7.2'
env: LARAVEL='^7.0'
- php: '7.2'
env: LARAVEL='dev-master'
- php: '7.3'
env: LARAVEL='5.5.*'
- php: '7.3'
env: LARAVEL='5.8.*'
- php: '7.3'
env: LARAVEL='^6.0' INSTALL_LARAVEL=1 INSTALL_LUMEN=1
- php: '7.3'
env: LARAVEL='^7.0' INSTALL_LARAVEL=1 INSTALL_LUMEN=1
- php: '7.3'
env: LARAVEL='dev-master'
- php: '7.4'
env: LARAVEL='5.8.*'
- php: '7.4'
env: LARAVEL='^6.0'
- php: '7.4'
env: LARAVEL='^7.0'
- php: '7.4'
env: LARAVEL='dev-master'
allow_failures:
- php: '7.2'
env: LARAVEL='dev-master'
- php: '7.3'
env: LARAVEL='dev-master'
- php: '7.4'
env: LARAVEL='dev-master'
before_script:
- phpenv config-rm xdebug.ini || true
install:
- |
# Due to version incompatiblity with older Laravels we test, we remove it
composer remove --dev matt-allan/laravel-code-style --no-interaction --no-update
- composer require "illuminate/support:${LARAVEL}" --no-interaction --no-update
- |
# 6.0 requires lifting other requirements too
if [[ $LARAVEL = '^6.0' ]]; then
composer require "illuminate/contracts:${LARAVEL}" --no-interaction --no-update
fi
if [[ $LARAVEL = '^7.0' ]]; then
composer require "illuminate/contracts:${LARAVEL}" --no-interaction --no-update
fi
# dev-master requires liftig other requirements too
if [[ $LARAVEL = 'dev-master' ]]; then
composer require "illuminate/contracts:${LARAVEL}" --no-interaction --no-update
composer require "orchestra/testbench:${LARAVEL}" --no-interaction --no-update
fi
- composer remove --dev nunomaduro/larastan --no-interaction --no-update
- composer install --prefer-dist --no-interaction --no-suggest
- if [[ $LARAVEL = '5.5.*' ]]; then composer require --dev orchestra/database:3.5 --prefer-dist --no-interaction --no-suggest; fi
script:
- vendor/bin/phpunit --colors=always --verbose
- TESTS_ENABLE_LAZYLOAD_TYPES=1 vendor/bin/phpunit --colors=always --verbose
- if [[ $INSTALL_LARAVEL = 1 ]]; then export -f travis_retry ; tests/integration-larvavel.sh; fi
- if [[ $INSTALL_LUMEN = 1 ]]; then export -f travis_retry ; tests/integration-lumen.sh; fi