1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2026-08-16 05:54:53 +02:00

Travis: add warning when failing

This commit is contained in:
Rico Sta. Cruz
2018-03-17 13:12:48 +08:00
parent 65f1316f28
commit 7ac089b636
2 changed files with 11 additions and 3 deletions

View File

@@ -2,8 +2,9 @@ language: ruby
rvm:
- 2.5.0
script:
- make test
- make _site
- if ! make test; then make test-warning; exit 16; fi
cache:
directories:
- node_modules
- _site
- node_modules
- _site

View File

@@ -35,3 +35,10 @@ test: _site
@grep "<script src" _site/index.html >/dev/null
@grep "<script src" _site/vim.html >/dev/null
@grep "<script src" _site/react.html >/dev/null
test-warning:
@echo "========="
@echo "If your build failed at this point, it means"
@echo "the site failed to generate. Check the project"
@echo "out locally and try to find out why."
@echo "========="