-
Notifications
You must be signed in to change notification settings - Fork 37
/
.travis.yml
40 lines (33 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
language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
env:
global:
- ILLUMINATE_VERSION=""
- TESTBENCH_VERSION=""
matrix:
- COMPOSER_FLAGS="--prefer-lowest"
- COMPOSER_FLAGS=""
- ILLUMINATE_VERSION="5.7.*" TESTBENCH_VERSION="3.7.*"
- ILLUMINATE_VERSION="5.8.*" TESTBENCH_VERSION="3.8.*"
- ILLUMINATE_VERSION="6.*" TESTBENCH_VERSION="4.*"
matrix:
exclude:
- php: 7.1
env: ILLUMINATE_VERSION="6.*" TESTBENCH_VERSION="4.*"
before_script:
- travis_retry composer self-update
- if [ "$ILLUMINATE_VERSION" != "" ] && [ "$TESTBENCH_VERSION" != "" ]; then
composer require "illuminate/http:${ILLUMINATE_VERSION}" --no-update;
composer require "illuminate/support:${ILLUMINATE_VERSION}" --no-update;
composer require "orchestra/testbench:${TESTBENCH_VERSION}" --no-update;
fi
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
- php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover