File tree Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Expand file tree Collapse file tree 1 file changed +23
-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
+ # Test lowest dependencies
10
15
- 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
12
23
13
24
cache :
14
25
directories :
15
26
- $HOME/.composer/cache
16
27
17
28
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
19
36
# coding style
20
37
- if [[ $STATIC_ANALYSIS != "" ]]; then composer create-project symplify/easy-coding-standard temp/ecs; fi
21
38
You can’t perform that action at this time.
0 commit comments