-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
38 lines (32 loc) · 1.23 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
language: php
php:
- 7.2
- 7.3
- 7.4
env:
- LARAVEL_VERSION=6.0.*
- COMPOSER_FLAGS="--prefer-lowest"
- COMPOSER_FLAGS=""
#matrix:
# include:
# - php: 7.2
# env: ILLUMINATE_VERSION=7.0.* ORCHESTRA_VERSION=5.0.*
# - php: 7.3
# env: ILLUMINATE_VERSION=7.0.* ORCHESTRA_VERSION=5.0.*
# - php: 7.4
# env: ILLUMINATE_VERSION=7.0.* ORCHESTRA_VERSION=5.0.*
# - php: 7.3
# env: ILLUMINATE_VERSION=8.0.* ORCHESTRA_VERSION=6.0.*
# - php: 7.4
# env: ILLUMINATE_VERSION=8.0.* ORCHESTRA_VERSION=6.0.*
before_script:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
- if [ "$ILLUMINATE_VERSION" != "" ]; then composer require "illuminate/support:${ILLUMINATE_VERSION}" --no-update; fi;
- if [ "$LARAVEL_VERSION" != "" ]; then composer require --dev "laravel/laravel:${LARAVEL_VERSION}" --no-update; fi;
- if [ "$ORCHESTRA_VERSION" != "" ]; then composer require --dev "orchestra/testbench:${ORCHESTRA_VERSION}" --no-update; fi;
- composer update
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
- php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover