Skip to content

Commit 0b22ef1

Browse files
Test agains neweset dependencies
1 parent 3aac25d commit 0b22ef1

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

.travis.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,38 @@
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+
# Test lowest dependencies
1015
- php: 7.1
11-
env: STATIC_ANALYSIS=true
16+
env:
17+
- COMPOSER_FLAGS="--no-interaction --prefer-lowest"
18+
# Test with updated dependencies
19+
- php: 7.2
20+
- php: 7.3
21+
env:
22+
- STATIC_ANALYSIS=true
1223

1324
cache:
1425
directories:
1526
- $HOME/.composer/cache
1627

1728
install:
18-
- composer install --no-interaction
29+
- |
30+
if [[ $COMPOSER_LOCK = true ]]; then
31+
composer install $COMPOSER_FLAGS
32+
else
33+
composer update $COMPOSER_FLAGS
34+
fi
35+
- composer $COMPOSER
1936
# coding style
2037
- if [[ $STATIC_ANALYSIS != "" ]]; then composer create-project symplify/easy-coding-standard temp/ecs; fi
2138

0 commit comments

Comments
 (0)