This repository was archived by the owner on Mar 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +1657
-467
lines changed Expand file tree Collapse file tree 9 files changed +1657
-467
lines changed Original file line number Diff line number Diff line change 1
- vendor /
1
+ /vendor
2
+ /build
3
+
4
+ composer.phar
2
5
.php_cs.cache
3
- build /
6
+ .DS_Store
7
+ Thumbs.db
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ $config->getFinder()
7
7
->in (__DIR__ )
8
8
->exclude ('build ' )
9
9
->exclude ('vendor ' )
10
- ->exclude ('tests ' )
11
10
->name ('*.php ' )
12
11
->ignoreDotFiles (true )
13
12
->ignoreVCS (true );
Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
- sudo : false
4
-
5
3
php :
6
- - 7.0
7
4
- 7.1
8
5
6
+ env :
7
+ global :
8
+ - SEND_COVERAGE=false
9
+ - PHPSTAN=false
10
+
9
11
matrix :
10
- allow_failures :
11
- - php : nightly
12
12
fast_finish : true
13
+ include :
14
+ - php : 7.1
15
+ env : SEND_COVERAGE=true
16
+ # phpstan
17
+ - php : 7.1
18
+ env : PHPSTAN=true
19
+
20
+ sudo : false
13
21
14
22
cache :
15
23
directories :
16
24
- $HOME/.composer/cache
17
25
- $HOME/.php-cs-fixer
18
26
19
27
before_install :
20
- - composer self-update
21
28
- composer validate
22
29
23
30
install :
@@ -28,9 +35,9 @@ before_script:
28
35
29
36
script :
30
37
- mkdir -p build/logs
31
- - vendor/bin/phpunit -c phpunit.xml.dist --verbose
32
- - vendor/bin/php-cs-fixer fix --config=.php_cs --verbose --diff --dry-run
38
+ - if [[ "$PHPSTAN" = false && "$SEND_COVERAGE" = true ]]; then ./vendor/bin/php-cs-fixer fix --verbose --diff --dry-run; fi
39
+ - if [[ "$PHPSTAN" = false && "$SEND_COVERAGE" = true ]]; then ./vendor/bin/phpunit -c phpunit.xml.dist --verbose --coverage-clover=coverage.xml; fi
40
+ - if [[ "$PHPSTAN" = true && "$SEND_COVERAGE" = false ]]; then ./vendor/bin/phpstan analyse -c phpstan.neon -l 6 src; fi
33
41
34
- after_script :
35
- - wget https://scrutinizer-ci.com/ocular.phar
36
- - php ocular.phar code-coverage:upload --format=php-clover build/logs/coverage.clover
42
+ after_success :
43
+ - if [[ "$PHPSTAN" = false && "$SEND_COVERAGE" = true ]]; then bash <(curl -s https://codecov.io/bash); fi
Original file line number Diff line number Diff line change 24
24
}
25
25
],
26
26
"require" : {
27
- "php" : " ^7.0 " ,
28
- "friendsofphp/php-cs-fixer" : " ^2.0 "
27
+ "php" : " ^7.1 " ,
28
+ "friendsofphp/php-cs-fixer" : " ^2.3.2 "
29
29
},
30
30
"require-dev" : {
31
- "phpunit/phpunit" : " ^5.1"
31
+ "phpunit/phpunit" : " ^6.1" ,
32
+ "phpstan/phpstan" : " ^0.7"
32
33
},
33
34
"autoload" : {
34
35
"psr-4" : {
37
38
},
38
39
"autoload-dev" : {
39
40
"psr-4" : {
40
- "Narrowspark\\ CS\\ Config\\ Test\\ " : " test "
41
+ "Narrowspark\\ CS\\ Config\\ Test\\ " : " tests "
41
42
}
42
43
},
43
44
"config" : {
You can’t perform that action at this time.
0 commit comments