File tree 5 files changed +51
-36
lines changed
5 files changed +51
-36
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ tests export-ignore
5
5
.gitattributes export-ignore
6
6
.gitignore export-ignore
7
7
.travis.yml export-ignore
8
+ Makefile export-ignore
8
9
phpstan.neon export-ignore
9
10
README.md export-ignore
10
11
ruleset.xml export-ignore
Original file line number Diff line number Diff line change 3
3
- 7.1
4
4
- 7.2
5
5
- 7.3
6
+ - 7.4snapshot
7
+ - nightly
6
8
7
9
before_install :
8
- # Turn off XDebug
9
- - phpenv config-rm xdebug.ini || return 0
10
+ - phpenv config-rm xdebug.ini || return 0 # Turn off XDebug
10
11
11
12
install :
12
- # Composer
13
- - travis_retry composer install --no-progress --prefer-dist
13
+ - travis_retry composer install --no-progress --prefer-dist # Install dependencies
14
14
15
15
script :
16
- # Tests
17
- - composer run-script tests
16
+ - make tests # Tests
18
17
19
18
after_failure :
20
- # Print *.actual content
21
- - for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
19
+ - for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done # Print *.actual content
22
20
23
21
jobs :
24
22
include :
25
23
- env : title="Lowest Dependencies 7.1"
26
24
php : 7.1
27
25
install :
28
- - travis_retry composer update --no-progress --prefer-dist --prefer-lowest
26
+ - travis_retry composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable
29
27
script :
30
- - composer run-script tests
28
+ - make tests
31
29
32
30
- stage : Quality Assurance
33
31
php : 7.1
34
32
script :
35
- - composer run-script qa
36
-
37
- - stage : Phpstan
38
- php : 7.1
39
- script :
40
- - composer run-script phpstan
33
+ - make qa
41
34
42
35
- stage : Test Coverage
43
36
if : branch = master AND type = push
44
37
php : 7.1
45
38
script :
46
- - composer run-script coverage
39
+ - make coverage
47
40
after_script :
48
41
- composer global require php-coveralls/php-coveralls ^2.1.0
49
42
- ~/.composer/vendor/bin/php-coveralls --verbose --config tests/.coveralls.yml
@@ -52,10 +45,12 @@ jobs:
52
45
if : branch = master AND type = cron
53
46
php : 7.1
54
47
script :
55
- - composer outdated --direct --strict
48
+ - composer outdated --direct
56
49
57
50
allow_failures :
58
51
- stage : Test Coverage
52
+ - php : 7.4snapshot
53
+ - php : nightly
59
54
60
55
sudo : false
61
56
Original file line number Diff line number Diff line change
1
+ .PHONY : qa lint cs csf phpstan tests coverage
2
+
3
+ all :
4
+ @$(MAKE ) -pRrq -f $(lastword $(MAKEFILE_LIST ) ) : 2> /dev/null | awk -v RS= -F: ' /^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e ' ^[^[:alnum:]]' -e ' ^$@$$' | xargs
5
+
6
+ vendor : composer.json composer.lock
7
+ composer install
8
+
9
+ qa : lint phpstan cs
10
+
11
+ lint : vendor
12
+ vendor/bin/linter src tests
13
+
14
+ cs : vendor
15
+ vendor/bin/codesniffer src tests
16
+
17
+ csf : vendor
18
+ vendor/bin/codefixer src tests
19
+
20
+ phpstan : vendor
21
+ vendor/bin/phpstan analyse -l max -c phpstan.neon src
22
+
23
+ tests : vendor
24
+ vendor/bin/tester -s -p php --colors 1 -C tests/cases
25
+
26
+ coverage : vendor
27
+ vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/cases
Original file line number Diff line number Diff line change 15
15
"symfony/console" : " ^4.1.1"
16
16
},
17
17
"require-dev" : {
18
- "ninjify/qa" : " ^0.8.0" ,
19
- "ninjify/nunjuck" : " ^0.2.0" ,
20
18
"apitte/negotiation" : " ^0.5.0" ,
21
19
"nette/di" : " ~2.4.15" ,
22
- "phpstan/phpstan-shim" : " ^0.11" ,
20
+ "ninjify/nunjuck" : " ^0.2.0" ,
21
+ "ninjify/qa" : " ^0.8.0" ,
23
22
"phpstan/phpstan-deprecation-rules" : " ^0.11" ,
24
23
"phpstan/phpstan-nette" : " ^0.11" ,
24
+ "phpstan/phpstan-shim" : " ^0.11" ,
25
25
"phpstan/phpstan-strict-rules" : " ^0.11"
26
26
},
27
+ "conflict" : {
28
+ "apitte/negotiation" : " <0.5.0" ,
29
+ "nette/di" : " <2.4.15"
30
+ },
27
31
"autoload" : {
28
32
"psr-4" : {
29
33
"Apitte\\ Console\\ " : " src"
30
34
}
31
35
},
32
36
"minimum-stability" : " dev" ,
33
37
"prefer-stable" : true ,
34
- "scripts" : {
35
- "qa" : [
36
- " linter src tests" ,
37
- " codesniffer src tests"
38
- ],
39
- "tests" : [
40
- " tester -s -p php --colors 1 -C tests/cases"
41
- ],
42
- "coverage" : [
43
- " tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/cases"
44
- ],
45
- "phpstan" : [
46
- " vendor/bin/phpstan analyse -l max -c phpstan.neon src"
47
- ]
38
+ "config" : {
39
+ "sort-packages" : true
48
40
},
49
41
"extra" : {
50
42
"branch-alias" : {
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
- <ruleset name = " Contributte " >
2
+ <ruleset >
3
3
<!-- Contributte Coding Standard -->
4
4
<rule ref =" ./vendor/ninjify/coding-standard/contributte.xml" >
5
5
<exclude name =" Squiz.Commenting.FunctionComment.InvalidTypeHint" />
You can’t perform that action at this time.
0 commit comments