-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
54 lines (45 loc) · 1.19 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
sudo: false
cache:
directories:
- $HOME/.composer/cache
language: php
php:
- 7.1
- 7.2
- 7.3
env:
matrix:
- LARAVEL='5.5.*' PHPUNIT='~6.0'
- LARAVEL='5.6.*' PHPUNIT='^7.0'
- LARAVEL='5.7.*' PHPUNIT='^7.0'
global:
- COVERAGE=0
matrix:
exclude:
# This is run with coverage instead
- php: 7.1
env: LARAVEL='5.7.*' PHPUNIT='^7.0'
include:
# Generating coverage on 7.1, as 7.2 does segfault, switch back eventually
- php: 7.1
env: LARAVEL='5.7.*' PHPUNIT='^7.0' COVERAGE=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
- composer global require hirak/prestissimo --update-no-dev
- composer require
"illuminate/support:${LARAVEL}"
"orchestra/testbench:${LARAVEL/5\./3\.}"
"phpunit/phpunit:${PHPUNIT}"
--no-interaction --no-update
install:
- composer install --prefer-dist --no-interaction --no-suggest
script:
- if [[ $COVERAGE = 1 ]]; then
phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml;
else
phpunit --colors=always --verbose;
fi
after_success:
- if [[ $COVERAGE = 1 ]]; then bash <(curl -s https://codecov.io/bash); fi