File tree Expand file tree Collapse file tree 4 files changed +21
-19
lines changed Expand file tree Collapse file tree 4 files changed +21
-19
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
- sudo : false
4
-
5
3
cache :
6
4
directories :
7
5
- $HOME/.composer/cache/files
8
6
9
- php :
10
- - 7.1
11
- - 7.2
12
- - 7.3
13
-
14
7
env :
15
8
global :
16
9
- TEST_COMMAND="composer test"
@@ -23,12 +16,23 @@ branches:
23
16
matrix :
24
17
fast_finish : true
25
18
include :
26
- - name : PHPSpec
19
+ - name : PHPSpec 7.1
20
+ php : 7.1
21
+ - name : PHPSpec 7.2
22
+ php : 7.2
23
+ - name : PHPSpec 7.3
24
+ php : 7.3
25
+ - name : PHPSpec 7.4
26
+ php : 7.4
27
+ - name : PHPSpec 8.0
28
+ php : nightly
29
+ env : COMPOSER_FLAGS="--prefer-stable --ignore-platform-reqs" DEPENDENCIES="phpdocumentor/reflection-docblock:^5.2@dev"
30
+ - name : PHPSpec lowest
27
31
php : 7.1
28
- env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" TEST_COMMAND="composer test" PULI_VERSION=1.0.0-beta9
32
+ env : COMPOSER_FLAGS="--prefer-stable --prefer-lowest" PULI_VERSION=1.0.0-beta9
29
33
- name : PHPSpec code coverage
30
34
php : 7.2
31
- env : COVERAGE=true TEST_COMMAND="composer test-ci" PULI_VERSION=1.0.0-beta10 DEPENDENCIES="friends-of-phpspec/phpspec-code-coverage:^4.3"
35
+ env : COVERAGE=true TEST_COMMAND="composer test-ci" DEPENDENCIES="friends-of-phpspec/phpspec-code-coverage:^4.3 phpspec/phpspec:^5.1 "
32
36
- name : PHPUnit tests
33
37
php : 7.3
34
38
env : TEST_COMMAND="./vendor/bin/phpunit" DEPENDENCIES="phpunit/phpunit:^7.5 nyholm/psr7:^1.0 kriswallsmith/buzz:^1.0 php-http/curl-client:^1.0 php-http/message"
Original file line number Diff line number Diff line change 11
11
}
12
12
],
13
13
"require" : {
14
- "php" : " ^7.1"
14
+ "php" : " ^7.1 || ^8.0 "
15
15
},
16
16
"require-dev" : {
17
+ "graham-campbell/phpspec-skip-example-extension" : " ^5.0" ,
17
18
"php-http/httplug" : " ^1.0 || ^2.0" ,
18
19
"php-http/message-factory" : " ^1.0" ,
19
- "puli/composer-plugin" : " 1.0.0-beta10" ,
20
- "phpspec/phpspec" : " ^5.1" ,
21
- "akeneo/phpspec-skip-example-extension" : " ^4.0"
20
+ "phpspec/phpspec" : " ^5.1 || ^6.1" ,
21
+ "puli/composer-plugin" : " 1.0.0-beta10"
22
22
},
23
23
"suggest" : {
24
24
"puli/composer-plugin" : " Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details." ,
Original file line number Diff line number Diff line change 12
12
use PhpSpec \ObjectBehavior ;
13
13
14
14
/**
15
- * @require \NotPHP73
15
+ * @require \PuliIsSupported
16
16
*/
17
17
class PuliSpec extends ObjectBehavior
18
18
{
Original file line number Diff line number Diff line change 8
8
]);
9
9
}
10
10
11
- if (PHP_VERSION_ID >= 70300 && PHP_VERSION_ID < 70400 ) {
12
- class PHP73 {}
13
- } else {
14
- class NotPHP73 {}
11
+ if (PHP_VERSION_ID < 70300 ) {
12
+ class PuliIsSupported {}
15
13
}
You can’t perform that action at this time.
0 commit comments