Skip to content

Instantly share code, notes, and snippets.

@zbeekman
Created February 14, 2015 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zbeekman/b616322fe32abf4a81fd to your computer and use it in GitHub Desktop.
Save zbeekman/b616322fe32abf4a81fd to your computer and use it in GitHub Desktop.
#!/usr/local/bin/bash
if [ -e ".travis.yml" ]; then
if type ruby > /dev/null 2>&1 && type travis > /dev/null 2>&1; then
stat_file=".travis_status~"
status=$(travis branches 2>&1)
echo "$status" > $stat_file
# Ignore status file from git repo
if ! ([ -e .git/info/exclude ] && grep -q "$stat_file" .git/info/exclude); then
[ -d .git/info ] && echo "$stat_file" >> .git/info/exclude
fi
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment