Skip to content

Instantly share code, notes, and snippets.

@miyagawa
Created May 8, 2015 01:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save miyagawa/d1a0ea5eae25da7841f3 to your computer and use it in GitHub Desktop.
Save miyagawa/d1a0ea5eae25da7841f3 to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ "$1" = "open" ]; then
REPO=`git remote -v | grep origin | perl -nle '/github\.com:(\S*)\.git/ && print $1' | head -1`
open "https://travis-ci.org/$REPO"
exit
fi
rbenv exec travis "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment