-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
35 lines (26 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
language: php
php:
- 7.2
- 7.3
- 8.0
sudo: false
cache:
directories:
- $HOME/.composer/cache
env:
- ILLUMINATE_VERSION=5.8.* TESTBENCH=3.8.* PHPUNIT_VERSION=~8.0 COVERAGE=true
- ILLUMINATE_VERSION=6.* TESTBENCH=4.* PHPUNIT_VERSION=~8.0 COVERAGE=true
- ILLUMINATE_VERSION=7.* TESTBENCH=5.* PHPUNIT_VERSION=~9.0 COVERAGE=true
- ILLUMINATE_VERSION=8.* TESTBENCH=6.* PHPUNIT_VERSION=~9.0 COVERAGE=true
matrix:
fast_finish: true
before_install:
- travis_retry composer self-update
- composer require "illuminate/support:${ILLUMINATE_VERSION}" --no-update --prefer-dist
- composer require "orchestra/testbench:${TESTBENCH}" --no-update --prefer-dist
- composer require "phpunit/phpunit:${PHPUNIT_VERSION}" --no-update --prefer-dist
install: travis_retry composer install --no-interaction --prefer-dist
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
- sh -c "if [ ! -z ${COVERAGE+x} ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi"