Skip to content

Commit 1c23f83

Browse files
committed
travis: uses NCS 2
1 parent db4152c commit 1c23f83

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
php: 7.1
2424
install:
2525
# Install Nette Code Checker
26-
- travis_retry composer create-project nette/code-checker temp/code-checker ~2 --no-progress
26+
- travis_retry composer create-project nette/code-checker temp/code-checker ^3 --no-progress
2727
# Install Nette Coding Standard
28-
- travis_retry composer create-project nette/coding-standard temp/coding-standard --no-progress
28+
- travis_retry composer create-project nette/coding-standard temp/coding-standard ^2 --no-progress
2929

3030
script:
31-
- php temp/code-checker/src/code-checker.php --short-arrays --strict-types -i tests/Utils/fixtures.reflection
32-
- php temp/coding-standard/ecs check src tests --config tests/coding-standard.neon
31+
- php temp/code-checker/code-checker --short-arrays --strict-types -i tests/Utils/fixtures.reflection
32+
- php temp/coding-standard/ecs check src tests --config tests/coding-standard.yml
3333

3434

3535
- stage: Static Analysis

tests/coding-standard.neon

-13
This file was deleted.

tests/coding-standard.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
imports:
2+
- { resource: '../temp/coding-standard/coding-standard-php71.yml' }
3+
4+
parameters:
5+
skip:
6+
PHP_CodeSniffer\Standards\PSR1\Sniffs\Methods\CamelCapsMethodNameSniff:
7+
- tests/Utils/FileSystem.phpt # RemoteStream extends streamWrapper
8+
9+
PhpCsFixer\Fixer\Import\SingleImportPerStatementFixer:
10+
- src/Utils/Arrays.php # use function
11+
- src/Utils/Callback.php # use function
12+
- src/Utils/Html.php # use function
13+
- src/Utils/Strings.php # use function

0 commit comments

Comments
 (0)