Created
February 21, 2016 12:22
-
-
Save lpenz/98dbfb57dbe67730292b to your computer and use it in GitHub Desktop.
Test .gitignore in travis
This file contains hidden or 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
script: | |
- true TESTS RUN HERE | |
- true Test if we .gitignore test files | |
- TMP=$(tempfile) | |
- git ls-files . --exclude-standard --others | tee "$TMP" | |
- if test -s "$TMP"; then false; else true; fi | |
- true Test if we .gitignore any tracked files | |
- git ls-files -i --exclude-standard | tee "$TMP" | |
- if test -s "$TMP"; then false; else true; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment