Skip to content

Integrate heroku in travis setup #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,28 @@
git config --global user.name "$GIT_USER_NAME"
git config --global user.email $GIT_USER_EMAIL

git remote rm $PROVIDER ;
git remote add $PROVIDER git@$PROVIDER.com:$PROVIDER_APP_NAME.git ;
# Install the Heroku gem (or the Heroku toolbelt)
- gem install $PROVIDER
# Add your Heroku git repo:
- git remote rm $PROVIDER ;
- git remote add $PROVIDER git@$PROVIDER.com:$PROVIDER_APP_NAME.git ;
# Add your Heroku API key:
- export HEROKU_API_KEY=$HEROKU_API_KEY
# Turn off warnings about SSH keys:
- echo " Host heroku.com" >> ~/.ssh/config
- echo " StrictHostKeyChecking no" >> ~/.ssh/config
- echo " CheckHostIP no" >> ~/.ssh/config
- echo " UserKnownHostsFile=/dev/null" >> ~/.ssh/config
# Clear your current Heroku SSH keys:
- $PROVIDER keys:clear
# Add a new SSH key to Heroku
- yes | $PROVIDER keys:add

git add dist/ ;
git checkout -b $NEW_TRAVIS_BRANCH ;
git commit -m "$TRAVIS_COMMIT_MESSAGE" ;
git push $PROVIDER $NEW_TRAVIS_BRANCH:$PROVIDER_BRANCH ;
- git add dist/ ;
- git checkout -b $NEW_TRAVIS_BRANCH ;
- git commit -m "$TRAVIS_COMMIT_MESSAGE" ;
# Push to Heroku!
- yes | git push $PROVIDER $NEW_TRAVIS_BRANCH:$PROVIDER_BRANCH ;

echo -e "yes" | ./travis.sh ; fi

# echo -e "yes" | ./travis.sh