forked from laravel/cashier-mollie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (37 loc) · 1.09 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
language: php
sudo: false
php:
- 7.2
- 7.3
# - nightly
env:
global:
- COVERAGE=0
matrix:
- LARAVEL='5.8.*' TESTBENCH='3.8.*'
- LARAVEL='6.0.*' TESTBENCH='4.0.*'
cache:
directories:
- "$HOME/.composer/cache"
matrix:
fast_finish: true
allow_failures:
- php: nightly
include:
- php: 7.3
env: COVERAGE=1 LARAVEL='6.0.*' TESTBENCH='4.0.*'
exclude:
- php: 7.3
env: LARAVEL='6.0.*' TESTBENCH='4.0.*'
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