Skip to content

Commit

Permalink
Use --Werror for vnu.jar and pass $CHECKER_FILTER to --filterpattern
Browse files Browse the repository at this point in the history
This is needed for whatwg/encoding#121.
  • Loading branch information
foolip committed Oct 30, 2017
1 parent 83946dd commit 43c89dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources.whatwg.org/build/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ POST_BUILD_STEP=${POST_BUILD_STEP:-}
NEW_SERVER="165.227.248.76"
NEW_SERVER_PUBLIC_KEY="ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDt6Igtp73aTOYXuFb8qLtgs80wWF6cNi3/AItpWAMpX3PymUw7stU7Pi+IoBJz21nfgmxaKp3gfSe2DPNt06l8="

# HTML checker filter passed to vnu.jar --filterpattern
CHECKER_FILTER=${CHECKER_FILTER:-}

# Note: $TRAVIS_PULL_REQUEST is either a number or false, not true or false.
# https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
if [[ "$TRAVIS" == "true" && "$TRAVIS_PULL_REQUEST" != "false" ]]; then
Expand Down Expand Up @@ -128,7 +131,7 @@ echo ""
if [[ "$TRAVIS" == "true" ]]; then
# Run the HTML checker only when building on Travis
curl -O https://sideshowbarker.net/nightlies/jar/vnu.jar
/usr/lib/jvm/java-8-oracle/jre/bin/java -jar vnu.jar --skip-non-html "$WEB_ROOT"
/usr/lib/jvm/java-8-oracle/jre/bin/java -jar vnu.jar --skip-non-html --Werror --filterpattern "$CHECKER_FILTER" "$WEB_ROOT"

# Get the deploy key by using Travis's stored variables to decrypt deploy_key.enc
ENCRYPTED_KEY_VAR="encrypted_${ENCRYPTION_LABEL}_key"
Expand Down

0 comments on commit 43c89dd

Please sign in to comment.