Skip to content

Commit

Permalink
travis: tested using Nette Coding Standard
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jul 13, 2017
1 parent 389c41c commit 2446ba4
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,34 @@ matrix:
env: dependencies="--prefer-lowest --prefer-stable"
- php: 7.1
env: coverage=on
- php: 7.1
env: codingStandard=on

allow_failures:
- php: 7.1
env: coverage=on

script:
- vendor/bin/tester tests -s -c tests/php-unix.ini $coverageArgs
- php temp/code-checker/src/code-checker.php --short-arrays --strict-types
- >
if [ "$codingStandard" == "on" ]; then
php temp/code-checker/src/code-checker.php --short-arrays --strict-types;
php temp/coding-standard/ecs check src tests --config temp/coding-standard/coding-standard-php71.neon;
fi
after_failure:
# Print *.actual content
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done

before_script:
# Install Nette Tester & Code Checker
# Install Nette Tester
- travis_retry composer update --no-interaction --prefer-dist $dependencies
- travis_retry composer create-project nette/code-checker temp/code-checker ~2.8 --no-interaction
# Install Code Checkers
- >
if [ "$codingStandard" == "on" ]; then
travis_retry composer create-project nette/code-checker temp/code-checker ~2 --no-interaction;
travis_retry composer create-project nette/coding-standard temp/coding-standard --no-interaction;
fi
- if [ "$coverage" == "on" ]; then coverageArgs="-p phpdbg --coverage ./coverage.xml --coverage-src ./src"; fi

# Create databases.ini
Expand Down

0 comments on commit 2446ba4

Please sign in to comment.