forked from nuwave/lighthouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
78 lines (71 loc) · 1.76 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
stages:
- lint
- test
- coverage
- bench
before_install:
- phpenv config-rm xdebug.ini || true
- echo "memory_limit=4G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- mysql -e 'CREATE DATABASE test;'
install:
- if [[ $LARAVEL = '5.5.*' ]]; then composer remove --dev nunomaduro/larastan --no-update; fi
- composer require "illuminate/contracts:${LARAVEL}" --no-interaction --prefer-dist --no-interaction --no-suggest
script: vendor/bin/phpunit --colors=always --verbose
jobs:
fast_finish: true
allow_failures:
- stage: coverage
- stage: bench
include:
- stage: lint
php: "7.3"
env: LARAVEL='^6.0'
script:
- composer stan
- composer normalize --dry-run
- stage: test
php: "7.1"
env: LARAVEL='5.5.*'
- php: "7.1"
env: LARAVEL='5.6.*'
- php: "7.1"
env: LARAVEL='5.7.*'
- php: "7.1"
env: LARAVEL='5.8.*'
- php: "7.2"
env: LARAVEL='5.5.*'
- php: "7.2"
env: LARAVEL='5.6.*'
- php: "7.2"
env: LARAVEL='5.7.*'
- php: "7.2"
env: LARAVEL='5.8.*'
- php: "7.2"
env: LARAVEL='^6.0'
- 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: LARAVEL='^6.0'
- stage: coverage
php: "7.3"
env: LARAVEL='^6.0'
script:
- phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml
- bash <(curl -s https://codecov.io/bash)
- stage: bench
php: "7.3"
env: LARAVEL='^6.0'
script:
- vendor/bin/phpbench run --progress=none --report=ast
services:
- mysql
cache:
directories:
- $HOME/.composer/cache
language: php