Skip to content

Commit 1a732fd

Browse files
Test agains neweset dependencies
1 parent 3aac25d commit 1a732fd

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.travis.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,36 @@
11
language: php
22

3-
php:
4-
- 7.0
5-
- 7.1
6-
- 7.2
3+
4+
env:
5+
global:
6+
- COMPOSER_FLAGS="--no-interaction"
77

88
matrix:
99
include:
10+
- php: 7.0
11+
env:
12+
# Test commited lock file
13+
- COMPOSER_LOCK=true
14+
- STATIC_ANALYSIS=true
15+
# Test lowest dependencies
1016
- php: 7.1
11-
env: STATIC_ANALYSIS=true
17+
- COMPOSER_FLAGS="--no-interaction --prefer-lowest"
18+
# Test with updated dependencies
19+
- php: 7.2
20+
- php: 7.3
1221

1322
cache:
1423
directories:
1524
- $HOME/.composer/cache
1625

1726
install:
18-
- composer install --no-interaction
27+
- |
28+
if [[ $COMPOSER_LOCK = true ]]; then
29+
composer install $COMPOSER_FLAGS
30+
else
31+
composer update $COMPOSER_FLAGS
32+
fi
33+
- composer $COMPOSER
1934
# coding style
2035
- if [[ $STATIC_ANALYSIS != "" ]]; then composer create-project symplify/easy-coding-standard temp/ecs; fi
2136

0 commit comments

Comments
 (0)