Created
June 13, 2017 06:16
-
-
Save dettmering/38b53c58e9c9120b33293043ef2f9193 to your computer and use it in GitHub Desktop.
CI error handling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- bundle exec jekyll build 2>&1 | tee output.log | |
- grep -i "error" output.log > /dev/null ; test $? -ne 0 # fail if there is an error in output.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment