forked from Propaganistas/Laravel-Phone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (48 loc) · 1.37 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
50
51
52
53
54
55
56
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
cache:
directories:
- $HOME/.composer/cache
matrix:
fast_finish: true
include:
- php: 7.1
env: ILLUMINATE_VERSION=4.0.*
- php: 7.1
env: ILLUMINATE_VERSION=4.1.*
- php: 7.1
env: ILLUMINATE_VERSION=4.2.*
- php: 7.1
env: ILLUMINATE_VERSION=5.0.*
- php: 7.1
env: ILLUMINATE_VERSION=5.1.*
- php: 7.1
env: ILLUMINATE_VERSION=5.2.*
- php: 7.1
env: ILLUMINATE_VERSION=5.3.*
- php: 7.1
env: ILLUMINATE_VERSION=5.4.*
sudo: false
before_install:
- composer self-update
# 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 illuminate/support:${ILLUMINATE_VERSION} illuminate/validation:${ILLUMINATE_VERSION} --no-update; fi
install:
- travis_wait 30 travis_retry composer install --no-interaction --prefer-dist --no-suggest
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