-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (72 loc) · 3.22 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
language: php
cache:
directories:
- $HOME/.cache/pip
- $HOME/.composer/cache/files
- ${TRAVIS_BUILD_DIR}/travis/extension-cache
php:
- 5.5
- 5.6
- 7.0
- 7.1
env:
- ILLUMINATE_VERSION=5.1.* PHPUNIT_VERSION=~4.0
- ILLUMINATE_VERSION=5.2.* PHPUNIT_VERSION=~4.0
- 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:
# Test only Laravel 5.1 and 5.2 on PHP 5.5
- php: 5.5
env: ILLUMINATE_VERSION=5.3.* PHPUNIT_VERSION=~5.0
- php: 5.5
env: ILLUMINATE_VERSION=5.4.* PHPUNIT_VERSION=~5.7
- php: 5.5
env: ILLUMINATE_VERSION=5.5.* PHPUNIT_VERSION=~6.0
- php: 5.5
env: ILLUMINATE_VERSION=5.5.* PHPUNIT_VERSION=~6.0 COVERAGE=true
- php: 5.5
env: ILLUMINATE_VERSION=5.6.* PHPUNIT_VERSION=~7.0 DATABASE_VERSION=v3.6.x-dev
# 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.1.* PHPUNIT_VERSION=~4.0
- 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
- composer global require hirak/prestissimo --update-no-dev
- export TESTBENCH_VERSION=${ILLUMINATE_VERSION/5\./3\.}
- export DATABASE_VERSION=${DATABASE_VERSION:-${ILLUMINATE_VERSION/5\./3\.}}
- composer require "illuminate/support:${ILLUMINATE_VERSION}" --no-update --prefer-dist
- composer require "orchestra/testbench:${TESTBENCH_VERSION}" --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 php vendor/bin/coveralls; fi"
notifications:
email: false
slack:
secure: ZilkSllOIo1vCtgUJrQ2ZQaCxW4/zpXZSFYL5Scl5o66fkgmymHR+cUqHsz9jHkXEkxOxORG1baRaJDKnyJ2A3XTfscmhOvAOupQ9jzc9M8yzugH7SrxcjDUJ02CX6LcXlOtOvPwPdkHVi9hR/qmx9D4QZEznVmvxZ2HJOVNJ18=