-
Notifications
You must be signed in to change notification settings - Fork 182
/
Copy path.travis.yml
45 lines (38 loc) · 1.11 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
language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4
# - nightly
## Cache composer
cache:
directories:
- $HOME/.composer/cache
env:
- LARAVEL_VERSION=5.8.* TESTBENCH_VERSION=3.8.*
- LARAVEL_VERSION=6.* TESTBENCH_VERSION=4.*
- LARAVEL_VERSION=7.* TESTBENCH_VERSION=5.*
- LARAVEL_VERSION=8.* TESTBENCH_VERSION=6.*
matrix:
exclude:
- php: 7.1
env: LARAVEL_VERSION=6.* TESTBENCH_VERSION=4.*
- php: 7.1
env: LARAVEL_VERSION=7.* TESTBENCH_VERSION=5.*
- php: 7.1
env: LARAVEL_VERSION=8.* TESTBENCH_VERSION=6.*
- php: 7.2
env: LARAVEL_VERSION=8.* TESTBENCH_VERSION=6.*
before_script:
- yes '' | pecl install imagick
- composer require "laravel/framework:${LARAVEL_VERSION}" "orchestra/testbench:${TESTBENCH_VERSION}" --no-update
- travis_retry composer update --no-interaction --prefer-dist
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
- |
if [[ "$TRAVIS_PHP_VERSION" == '7.4' ]]; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
fi