Browse Source

Allow custom codesniffer ignore arguments (#716)

pull/717/head
Jared Whiklo 6 years ago committed by Jonathan Green
parent
commit
5642dbe019
  1. 5
      tests/scripts/travis_scripts.sh

5
tests/scripts/travis_scripts.sh

@ -35,8 +35,11 @@ if [ "$(phpenv version-name)" != "5.3.3" ]; then
else
DRUPAL_SNIFFS="Drupal"
fi
if [ -z "$CODESNIFFER_IGNORE" ]; then
CODESNIFFER_IGNORE="vendor,*.info,*.txt,*.md"
fi
echo "PHP Codesniffer"
/usr/bin/phpcs --standard=$DRUPAL_SNIFFS --extensions="php,module,inc,install,test" --ignore="vendor,*.info,*.txt,*.md" $TRAVIS_BUILD_DIR
/usr/bin/phpcs --standard=$DRUPAL_SNIFFS --extensions="php,module,inc,install,test" --ignore="$CODESNIFFER_IGNORE" $TRAVIS_BUILD_DIR
checkReturn $?
else
echo "Skipping PHP Codesniffer for PHP 5.3.3"

Loading…
Cancel
Save