-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
67 lines (67 loc) · 2.48 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
language: php
php:
- 7.1
- 7.2
- 7.3
cache:
directories:
- $HOME/.cache/pip
- $HOME/.composer/cache/files
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.6.* PHPUNIT_VERSION=~7.0
- ILLUMINATE_VERSION=5.7.* PHPUNIT_VERSION=~7.0
- ILLUMINATE_VERSION=5.8.* PHPUNIT_VERSION=~7.0 COVERAGE=true
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.6.* PHPUNIT_VERSION=~7.0
- php: 5.5
env: ILLUMINATE_VERSION=5.7.* PHPUNIT_VERSION=~7.0
- php: 5.5
env: ILLUMINATE_VERSION=5.8.* PHPUNIT_VERSION=~7.0 COVERAGE=true
# Don't test Laravel 5.5 and up on PHP 5.6
- php: 5.6
env: ILLUMINATE_VERSION=5.5.* PHPUNIT_VERSION=~6.0
- php: 5.6
env: ILLUMINATE_VERSION=5.6.* PHPUNIT_VERSION=~7.0
- php: 5.6
env: ILLUMINATE_VERSION=5.7.* PHPUNIT_VERSION=~7.0
- php: 5.6
env: ILLUMINATE_VERSION=5.8.* PHPUNIT_VERSION=~7.0 COVERAGE=true
# Test Laravel 5.5 and down on PHP 7.0
- php: 7.0
env: ILLUMINATE_VERSION=5.6.* PHPUNIT_VERSION=~7.0
- php: 7.0
env: ILLUMINATE_VERSION=5.7.* PHPUNIT_VERSION=~7.0
- php: 7.0
env: ILLUMINATE_VERSION=5.8.* PHPUNIT_VERSION=~7.0 COVERAGE=true
# Test only Laravel 5.4 and up 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
before_install:
- echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer require "illuminate/support:${ILLUMINATE_VERSION}" --no-update --prefer-dist
- composer require "orchestra/testbench:${ILLUMINATE_VERSION/5\./3\.}" --no-update --prefer-dist
- composer require "phpunit/phpunit:${PHPUNIT_VERSION}" --no-update --prefer-dist
install:
travis_retry composer install --no-interaction --prefer-dist
script:
- mkdir -p build/logs
- php vendor/bin/phpunit -c phpunit.xml