forked from mollie/laravel-mollie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (46 loc) · 1.25 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
language: php
sudo: false
php:
- 7.1
- 7.2
- 7.3
- 7.4
- nightly
env:
global:
- COVERAGE=0
matrix:
- LARAVEL='5.8.*' TESTBENCH='3.8.*'
- LARAVEL='6.*' TESTBENCH='4.*'
- LARAVEL='7.*' TESTBENCH='5.*'
cache:
directories:
- "$HOME/.composer/cache"
matrix:
fast_finish: true
allow_failures:
- php: nightly
include:
- php: 7.4
env: COVERAGE=1 LARAVEL='7.*' TESTBENCH='5.*'
exclude:
- php: 7.1
env: LARAVEL='6.*' TESTBENCH='4.*'
- php: 7.3
env: LARAVEL='6.*' TESTBENCH='4.*'
- php: 7.1
env: LARAVEL='7.*' TESTBENCH='5.*'
- php: 7.4
env: LARAVEL='7.*' TESTBENCH='5.*'
before_script:
- composer config discard-changes true
before_install:
- travis_retry composer self-update
- travis_retry composer require "illuminate/support:${LARAVEL}" "illuminate/database:${LARAVEL}" "orchestra/testbench:${TESTBENCH}" --no-interaction --no-update
install:
- travis_retry composer install --prefer-dist --no-interaction --no-suggest
script:
- if [[ $COVERAGE = '0' ]]; then vendor/bin/phpunit; fi
- if [[ $COVERAGE = '1' ]]; then vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover; fi
after_script:
- if [[ $COVERAGE = '1' ]]; then php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover; fi