Skip to content

Instantly share code, notes, and snippets.

@coop
Created October 17, 2014 11:47
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 coop/dca3cb700f198b1bd8d5 to your computer and use it in GitHub Desktop.
Save coop/dca3cb700f198b1bd8d5 to your computer and use it in GitHub Desktop.
~$ cat bin/ci
#!/bin/sh
APP=$(basename $(git rev-parse --show-toplevel))
BASE_URL="https://semaphoreapp.com/everydayherodev/$APP/branches"
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
BRANCH_URL=$(echo $CURRENT_BRANCH | sed -e "s/\//-/g")
URL="$BASE_URL/$BRANCH_URL"
$(open "$URL")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment