-
Notifications
You must be signed in to change notification settings - Fork 51
/
.travis.yml
33 lines (24 loc) · 983 Bytes
/
.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
language: php
php:
- 7.2
- 7.3
sudo: false
cache:
directories:
- $HOME/.composer/cache
env:
- ILLUMINATE_VERSION=5.6.* PHPUNIT_VERSION=~7.0
- ILLUMINATE_VERSION=5.7.* PHPUNIT_VERSION=~7.0
- ILLUMINATE_VERSION=5.8.* PHPUNIT_VERSION=~8.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:${ILLUMINATE_VERSION/5\./3\.}" --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"