Skip to content

Commit

Permalink
travis: uses NCS 2 & CS 3
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 13, 2018
1 parent db4152c commit a692561
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Expand Up @@ -23,13 +23,13 @@ jobs:
php: 7.1
install:
# Install Nette Code Checker
- travis_retry composer create-project nette/code-checker temp/code-checker ~2 --no-progress
- travis_retry composer create-project nette/code-checker temp/code-checker ^3 --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 --short-arrays --strict-types -i tests/Utils/fixtures.reflection
- php temp/coding-standard/ecs check src tests --config tests/coding-standard.neon
- php temp/code-checker/code-checker --strict-types -i tests/Utils/fixtures.reflection
- php temp/coding-standard/ecs check src tests --config tests/coding-standard.yml


- stage: Static Analysis
Expand Down
13 changes: 0 additions & 13 deletions tests/coding-standard.neon

This file was deleted.

13 changes: 13 additions & 0 deletions tests/coding-standard.yml
@@ -0,0 +1,13 @@
imports:
- { resource: '../temp/coding-standard/coding-standard-php71.yml' }

parameters:
skip:
PHP_CodeSniffer\Standards\PSR1\Sniffs\Methods\CamelCapsMethodNameSniff:
- tests/Utils/FileSystem.phpt # RemoteStream extends streamWrapper

PhpCsFixer\Fixer\Import\SingleImportPerStatementFixer:
- src/Utils/Arrays.php # use function
- src/Utils/Callback.php # use function
- src/Utils/Html.php # use function
- src/Utils/Strings.php # use function

0 comments on commit a692561

Please sign in to comment.