Permalink
Browse files

add lint check

  • Loading branch information...
1 parent 3e0a93c commit 1ad9ce1785d71a130ad1051bdbef8aaaa5137798 @michield michield committed Jan 8, 2017
Showing with 4 additions and 2 deletions.
  1. +2 −0 .travis.yml
  2. +2 −2 composer.json
View
@@ -20,12 +20,14 @@ before_script:
- sudo cp -f tests/travis-ci/config.php public_html/lists/config/config.php
- composer self-update
- composer install --prefer-dist
+ - cd vendor/bin && ln -s ../njoannidi/php-lint-bash/phpLint
# Set MySQL configuration and create the database.
- mysql -e 'SET GLOBAL wait_timeout = 5400;'
- mysql -e 'create database phplistdb;'
script:
+ - vendor/bin/phpLint ./public_html
- vendor/bin/behat
after_failure:
- echo "Failures detected. Outputing additional logs:"
View
@@ -24,9 +24,9 @@
"behat/behat": "~2.4",
"behat/mink-extension": "~1.3",
"fabpot/goutte": "1.*@stable",
- "sllh/php-cs-fixer-styleci-bridge": "~1.3"
+ "sllh/php-cs-fixer-styleci-bridge": "~1.3",
+ "njoannidi/php-lint-bash": "dev-master"
},
- "minimum-stability": "dev",
"prefer-stable": true,
"config": {
"bin-dir": "vendor/bin/"

0 comments on commit 1ad9ce1

Please sign in to comment.