File tree Expand file tree Collapse file tree 3 files changed +35
-15
lines changed Expand file tree Collapse file tree 3 files changed +35
-15
lines changed Original file line number Diff line number Diff line change 8
8
directories :
9
9
- $HOME/.composer/cache/files
10
10
11
- php :
12
- - 5.4
13
- - 5.5
14
- - 5.6
15
- - 7.0
16
- - 7.1
17
- - hhvm
18
-
19
11
env :
20
12
global :
21
13
- TEST_COMMAND="composer test"
@@ -27,18 +19,47 @@ branches:
27
19
matrix :
28
20
fast_finish : true
29
21
include :
22
+ - php : 7.1
23
+ env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" DEPENDENCIES="doctrine/instantiator:^1.1"
24
+
25
+ # Test the latest stable release
30
26
- php : 5.4
31
- env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci"
27
+ - php : 5.5
28
+ - php : 5.6
29
+ - php : 7.0
30
+ - php : 7.1
31
+ - php : 7.2
32
+ env : COVERAGE=true TEST_COMMAND="composer test-ci" DEPENDENCIES="henrikbjorn/phpspec-code-coverage:^1.0"
33
+
34
+ # Test LTS versions
35
+ - php : 7.1
36
+ env : DEPENDENCIES="dunglas/symfony-lock:^2"
37
+ - php : 7.1
38
+ env : DEPENDENCIES="dunglas/symfony-lock:^3"
39
+ - php : 7.1
40
+ env : DEPENDENCIES="dunglas/symfony-lock:^4" STABILITY="rc"
41
+
42
+ # Latest dev release
43
+ - php : 7.1
44
+ env : STABILITY="dev"
32
45
46
+ allow_failures :
47
+ # Latest dev is allowed to fail.
48
+ - env : STABILITY="dev"
49
+
33
50
before_install :
34
51
- if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
52
+ - if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
53
+ - if ! [ -z "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;
35
54
36
55
install :
56
+ - cat composer.json
37
57
# To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
38
- - if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi
39
- - travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
58
+ - if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi
59
+ - composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
40
60
41
61
script :
62
+ - composer validate --strict --no-check-lock
42
63
- $TEST_COMMAND
43
64
44
65
after_success :
Original file line number Diff line number Diff line change 11
11
}
12
12
],
13
13
"require" : {
14
- "php" : " >= 5.4" ,
14
+ "php" : " ^ 5.4 || ^7.0 " ,
15
15
"php-http/httplug" : " ^1.1" ,
16
16
"php-http/message-factory" : " ^1.0" ,
17
17
"php-http/message" : " ^1.6" ,
18
18
"symfony/options-resolver" : " ^2.6 || ^3.0 || ^4.0"
19
19
},
20
20
"require-dev" : {
21
- "phpspec/phpspec" : " ^2.4" ,
22
- "henrikbjorn/phpspec-code-coverage" : " ^1.0" ,
21
+ "phpspec/phpspec" : " ^2.5 || ^3.4 || ^4.2" ,
23
22
"guzzlehttp/psr7" : " ^1.4"
24
23
},
25
24
"suggest" : {
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ private function isJson($stream)
102
102
103
103
json_decode ($ stream ->getContents ());
104
104
105
- return JSON_ERROR_NONE == json_last_error ();
105
+ return JSON_ERROR_NONE === json_last_error ();
106
106
}
107
107
108
108
/**
You can’t perform that action at this time.
0 commit comments