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