Skip to content

Instantly share code, notes, and snippets.

@evantahler
Last active November 3, 2016 15:13
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 evantahler/6fb3567251ed38b43d3f0afb4b28ae07 to your computer and use it in GitHub Desktop.
Save evantahler/6fb3567251ed38b43d3f0afb4b28ae07 to your computer and use it in GitHub Desktop.
sudo: false
language: node_js
node_js:
- "6"
env:
- secure: "xxxxxxxxxx="
after_success:
- |
FLYNN_APP=""
if [ "$TRAVIS_BRANCH" = "master" ]; then FLYNN_APP="www-staging"; fi
if [ "$TRAVIS_BRANCH" = "production" ]; then FLYNN_APP="www"; fi
if [ "$FLYNN_APP" = "" ]; then
echo "skipping branch $TRAVIS_BRANCH"
else
git pull
git remote add flynn https://user:$FLYNN_KEY@git.site.com/$FLYNN_APP.git
git push flynn master
fi
script: npm run test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment