Skip to content

Commit a742f93

Browse files
Try a different approach in .travis.yml file.
1 parent e20b079 commit a742f93

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
install:
2-
- "wget -O vnu.zip https://github.com/validator/validator.github.io/releases/download/20140825/vnu-20140825.jar.zip"
3-
- "unzip vnu.zip"
1+
env:
2+
- CHECKER=http://validator.w3.org/nu/
3+
- FILES=$(find . -name "*.html")
4+
- OUTPUT=$(for file in $FILES; do curl -s -F out=gnu -F doc=@$FILE $CHECKER; done)
45

56
script:
6-
- "java -jar ./vnu/vnu.jar index.html service.html"
7+
- if [ -n "$output" ]; then printf "$output"; echo; exit 1; fi

0 commit comments

Comments
 (0)