Skip to content

Commit

Permalink
add php cs stage
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed Aug 15, 2019
1 parent ddfe39f commit 6b16537
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ matrix:
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
- php: 7.2
env: TARGET=docs
- php: 7.2
env: TARGET=cs
fast_finish: true

install:
Expand Down
9 changes: 9 additions & 0 deletions .travis/install_cs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -ex

composer self-update

phpenv config-rm xdebug.ini

composer update -n
6 changes: 6 additions & 0 deletions .travis/script_cs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -ex

vendor/bin/phpcs

2 changes: 0 additions & 2 deletions .travis/script_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ phpenv config-rm xdebug.ini || true
php tests/benchmark.php json 3
php tests/benchmark.php xml 3

if [[ $TRAVIS_PHP_VERSION != '7.4'* ]]; then vendor/bin/phpcs; fi

0 comments on commit 6b16537

Please sign in to comment.