-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (52 loc) · 2.31 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
57
58
59
60
61
62
language: php
cache:
directories:
- $HOME/.composer/cache/files
php:
- 5.6
- 7.0
- 7.1
env:
- ILLUMINATE_VERSION=5.3.* PHPUNIT_VERSION=~5.0
- ILLUMINATE_VERSION=5.4.* PHPUNIT_VERSION=~5.7
- ILLUMINATE_VERSION=5.5.* PHPUNIT_VERSION=~6.0
- ILLUMINATE_VERSION=5.5.* PHPUNIT_VERSION=~6.0 COVERAGE=true
- ILLUMINATE_VERSION=5.6.* PHPUNIT_VERSION=~7.0 DATABASE_VERSION=v3.6.x-dev
matrix:
# For each PHP version we exclude the coverage env, except for PHP 7.1
exclude:
# Don't test Laravel 5.5 on PHP 5.6
- php: 5.6
env: ILLUMINATE_VERSION=5.5.* PHPUNIT_VERSION=~6.0
- php: 5.6
env: ILLUMINATE_VERSION=5.5.* PHPUNIT_VERSION=~6.0 COVERAGE=true
- php: 5.6
env: ILLUMINATE_VERSION=5.6.* PHPUNIT_VERSION=~7.0 DATABASE_VERSION=v3.6.x-dev
# Test everything on PHP 7.0
- php: 7.0
env: ILLUMINATE_VERSION=5.5.* PHPUNIT_VERSION=~6.0 COVERAGE=true
- php: 7.0
env: ILLUMINATE_VERSION=5.6.* PHPUNIT_VERSION=~7.0 DATABASE_VERSION=v3.6.x-dev
# Test only Laravel 5.4 and 5.5 on PHP 7.1
- php: 7.1
env: ILLUMINATE_VERSION=5.2.* PHPUNIT_VERSION=~4.0
- php: 7.1
env: ILLUMINATE_VERSION=5.3.* PHPUNIT_VERSION=~5.0
- php: 7.1
env: ILLUMINATE_VERSION=5.5.* PHPUNIT_VERSION=~6.0
before_install:
- cp ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ~/xdebug.ini
- phpenv config-rm xdebug.ini
- export TESTBENCH_VERSION=${ILLUMINATE_VERSION/5\./3\.}
- export DATABASE_VERSION=${DATABASE_VERSION:-${ILLUMINATE_VERSION/5\./3\.}}
- composer global require hirak/prestissimo --update-no-dev
- composer require "illuminate/support:${ILLUMINATE_VERSION}" --no-update --prefer-dist
- composer require "orchestra/testbench:${ILLUMINATE_VERSION/5\./3\.}" --no-update --prefer-dist
- composer require "orchestra/database:${DATABASE_VERSION}" --no-update --prefer-dist
- composer require "phpunit/phpunit:${PHPUNIT_VERSION}" --no-update --prefer-dist
install: travis_retry composer install --no-interaction --prefer-dist
before_script: phpenv config-add ~/xdebug.ini
script: vendor/bin/phpunit
after_success: sh -c "if [ ! -z ${COVERAGE+x} ]; then travis_retry php vendor/bin/php-coveralls; fi"
notifications:
email: false