File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -12,23 +12,34 @@ matrix:
12
12
env : dependencies="--prefer-lowest --prefer-stable" PHP_BIN=php
13
13
- php : 7.1
14
14
env : coverage=on
15
+ - php : 7.1
16
+ env : codingStandard=on
15
17
16
18
allow_failures :
17
19
- php : 7.1
18
20
env : coverage=on
19
21
20
22
script :
21
- - vendor/bin/tester -p $PHP_BIN tests -s $coverageArgs
22
- - php temp/code-checker/src/code-checker.php --short-arrays --strict-types
23
+ - if [ "$PHP_BIN" ]; then vendor/bin/tester -p $PHP_BIN tests -s $coverageArgs; fi
24
+ - >
25
+ if [ "$codingStandard" == "on" ]; then
26
+ php temp/code-checker/src/code-checker.php --short-arrays --strict-types;
27
+ php temp/coding-standard/ecs check src tests --config tests/coding-standard.neon;
28
+ fi
23
29
24
30
after_failure :
25
31
# Print *.actual content
26
32
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
27
33
28
34
before_script :
29
- # Install Nette Tester & Code Checker
35
+ # Install Nette Tester
30
36
- travis_retry composer update --no-interaction --prefer-dist $dependencies
31
- - travis_retry composer create-project nette/code-checker temp/code-checker ~2.8 --no-interaction
37
+ # Install Code Checkers
38
+ - >
39
+ if [ "$codingStandard" == "on" ]; then
40
+ travis_retry composer create-project nette/code-checker temp/code-checker ~2 --no-interaction;
41
+ travis_retry composer create-project nette/coding-standard temp/coding-standard --no-interaction;
42
+ fi
32
43
- if [ "$coverage" == "on" ]; then PHP_BIN=phpdbg; coverageArgs="--coverage ./coverage.xml --coverage-src ./src"; fi
33
44
34
45
after_script :
Original file line number Diff line number Diff line change
1
+ includes :
2
+ - ../temp/coding-standard/coding-standard-php71.neon
3
+
4
+ parameters :
5
+ skip :
6
+ PhpCsFixer\Fixer\FunctionNotation\NoUnreachableDefaultArgumentValueFixer :
7
+ - tests/UI/Presenter.paramChecking.phpt # intentionally for testing
You can’t perform that action at this time.
0 commit comments