forked from EskindirA/Laravel-Intl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (40 loc) · 1.43 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
41
42
43
44
45
46
47
48
49
language: php
php:
- 7.1
- 7.2
- 7.3
cache:
directories:
- $HOME/.composer/cache
matrix:
fast_finish: true
include:
- php: 7.3
env: ILLUMINATE_VERSION=5.8.* TESTBENCH_VERSION=3.8.* PHPUNIT_VERSION=8.*
- php: 7.3
env: ILLUMINATE_VERSION=6.* TESTBENCH_VERSION=4.* PHPUNIT_VERSION=8.*
sudo: false
before_install:
# Disable XDebug to speed up Composer.
- cp $HOME/.phpenv/versions/$(phpenv global)/etc/conf.d/xdebug.ini /tmp
- phpenv config-rm xdebug.ini
# Require a specific Illuminate version.
- if [ -n "$ILLUMINATE_VERSION" ] ; then composer require laravel/framework:${ILLUMINATE_VERSION} --no-update; fi
- if [ -n "$TESTBENCH_VERSION" ] ; then composer require orchestra/testbench:${TESTBENCH_VERSION} --no-update; fi
- if [ -n "$PHPUNIT_VERSION" ] ; then composer require phpunit/phpunit:${PHPUNIT_VERSION} --no-update; fi
install:
- travis_wait 60 travis_retry composer install --no-interaction --prefer-dist --no-suggest
before_script:
# Show some package versions
- composer show laravel/framework
- composer show orchestra/testbench
- composer show phpunit/phpunit
script:
# Re-enable XDebug.
- phpenv config-add /tmp/xdebug.ini
# Run the tests.
- vendor/bin/phpunit --coverage-clover=coverage.clover
after_script:
# Send test results to Scrutinizer.
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover