diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..74f2796 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: c +sudo: false + +notifications: + email: false + +script: + - ./tests.sh diff --git a/tests.sh b/tests.sh new file mode 100755 index 0000000..33293c3 --- /dev/null +++ b/tests.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +SPACED=$(grep -REn '^ .+' --include '*.snippets' snippets); + +if [[ -n SPACED ]]; then + echo These snippet lines are indented with spaces:; + echo; + echo "$SPACED"; + echo; + echo Tests failed! + exit 1; +fi + +echo Tests passed! +exit 0;