Last active
November 3, 2016 15:13
-
-
Save evantahler/6fb3567251ed38b43d3f0afb4b28ae07 to your computer and use it in GitHub Desktop.
This file contains 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
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:[email protected]/$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