diff --git a/.travis.yml b/.travis.yml index 3223e12f..1c1036a4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,10 +31,10 @@ jobs: # Install Nette Code Checker - travis_retry composer create-project nette/code-checker temp/code-checker ^3.0 --no-progress # Install Nette Coding Standard - - travis_retry composer create-project nette/coding-standard temp/coding-standard --no-progress + - travis_retry composer create-project nette/coding-standard temp/coding-standard ^2 --no-progress script: - - php temp/code-checker/src/code-checker.php --strict-types -i "tests/*/fixtures*" -i tests/Runner/find-tests - - php temp/coding-standard/ecs check src tests --config tests/coding-standard.neon; + - php temp/code-checker/code-checker --strict-types -i "tests/*/fixtures*" -i tests/Runner/find-tests + - php temp/coding-standard/ecs check src tests --config tests/coding-standard.yml - stage: Code Coverage diff --git a/tests/coding-standard.neon b/tests/coding-standard.neon deleted file mode 100644 index c76d1ab4..00000000 --- a/tests/coding-standard.neon +++ /dev/null @@ -1,8 +0,0 @@ -includes: - - ../temp/coding-standard/coding-standard-php56.neon - -parameters: - skip: - PHP_CodeSniffer\Standards\PSR1\Sniffs\Methods\CamelCapsMethodNameSniff: - - src/Framework/FileMock.php - - src/Framework/FileMutator.php diff --git a/tests/coding-standard.yml b/tests/coding-standard.yml new file mode 100644 index 00000000..f7d61836 --- /dev/null +++ b/tests/coding-standard.yml @@ -0,0 +1,8 @@ +imports: + - { resource: '../temp/coding-standard/coding-standard-php71.yml' } + +parameters: + skip: + PHP_CodeSniffer\Standards\PSR1\Sniffs\Methods\CamelCapsMethodNameSniff: + - src/Framework/FileMock.php + - src/Framework/FileMutator.php