-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
33 lines (26 loc) · 889 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.1
- 7.2
- 7.3
cache:
directories:
- $HOME/.composer/cache
env:
- TESTBENCH_VERSION=3.6.* PHPUNIT_VERSION=~7 STABILITY=stable
- TESTBENCH_VERSION=dev-master PHPUNIT_VERSION=~7 STABILITY=dev
matrix:
allow_failures:
- env: TESTBENCH_VERSION=dev-master PHPUNIT_VERSION=~7 STABILITY=dev
- php: nightly
fast_finish: true
before_script:
- travis_retry composer self-update
- composer config minimum-stability ${STABILITY}
- travis_retry composer require "orchestra/testbench:${TESTBENCH_VERSION}" "phpunit/phpunit:${PHPUNIT_VERSION}" --no-update
- travis_retry composer update --no-interaction --prefer-source
script:
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover