Skip to content

Commit bea0f75

Browse files
committed
Adjust travis configuration so tests are ran against all supported Laravel versions on various PHP versions.
1 parent 663b53a commit bea0f75

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.travis.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
11
language: php
22

3-
php:
4-
- '7.0'
5-
- '7.1'
6-
- '7.2'
3+
matrix:
4+
include:
5+
- php: "7.0"
6+
env: LARAVEL_VERSION="5.3.*"
7+
- php: "7.0"
8+
env: LARAVEL_VERSION="5.4.*"
9+
- php: "7.0"
10+
env: LARAVEL_VERSION="5.5.*"
11+
- php: "7.1"
12+
env: LARAVEL_VERSION="5.5.*"
13+
- php: "7.2"
14+
env: LARAVEL_VERSION="5.5.*"
15+
- php: "7.2"
16+
env: LARAVEL_VERSION="5.6.*" RUN_CS_FIXER=1
717

818
sudo: false
919

1020
install:
21+
- composer require "illuminate/support:${LARAVEL_VERSION}" --no-update --no-interaction
1122
- travis_retry composer install --no-interaction --prefer-dist
1223

1324
script:
14-
- vendor/bin/php-cs-fixer fix -v --dry-run --using-cache=no
25+
- if [ "$RUN_CS_FIXER" ] ; then vendor/bin/php-cs-fixer fix -v --dry-run --using-cache=no ; fi
1526
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
1627

1728
after_script:

0 commit comments

Comments
 (0)