forked from nuwave/lighthouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (60 loc) · 1.77 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
sudo: false
services:
- mysql
cache:
directories:
- $HOME/.composer/cache
language: php
env:
global:
- COVERAGE=0
- STATIC_ANALYSIS=0
matrix:
include:
- 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.*' COVERAGE=1 STATIC_ANALYSIS=1
- php: "7.3"
env: LARAVEL='^6.0'
allow_failures:
- php: "7.3"
env: LARAVEL='5.8.*' BENCHMARKS=1
fast_finish: true
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 = ^6.0 ]]; then composer remove laravel/lumen-framework; fi
- composer require "illuminate/contracts:${LARAVEL}" --no-interaction --no-update
- composer install --prefer-dist --no-interaction --no-suggest
script:
- if [[ $COVERAGE = 1 ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi
- if [[ $STATIC_ANALYSIS = 1 ]]; then composer require nunomaduro/larastan && composer stan; fi
- if [[ $COVERAGE = 0 ]]; then vendor/bin/phpunit --colors=always --verbose; fi
- if [[ $BENCHMARKS = 1 ]]; then vendor/bin/phpbench run --progress=none --report=ast; fi
after_success:
- if [[ $COVERAGE = 1 ]]; then bash <(curl -s https://codecov.io/bash); fi