File tree Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Expand file tree Collapse file tree 1 file changed +21
-6
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
- php :
4
- - 7.0
5
- - 7.1
6
- - 7.2
3
+
4
+ env :
5
+ global :
6
+ - COMPOSER_FLAGS="--no-interaction"
7
7
8
8
matrix :
9
9
include :
10
+ - php : 7.0
11
+ env :
12
+ # Test commited lock file
13
+ - COMPOSER_LOCK=true
14
+ - STATIC_ANALYSIS=true
15
+ # Test lowest dependencies
10
16
- 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
12
21
13
22
cache :
14
23
directories :
15
24
- $HOME/.composer/cache
16
25
17
26
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
19
34
# coding style
20
35
- if [[ $STATIC_ANALYSIS != "" ]]; then composer create-project symplify/easy-coding-standard temp/ecs; fi
21
36
You can’t perform that action at this time.
0 commit comments