Skip to content

Commit

Permalink
Merge pull request #27 from surabhi226005/feature/ss/test-ci-5
Browse files Browse the repository at this point in the history
Integrate heroku in travis setup
  • Loading branch information
ssurabhi10 committed Jul 28, 2017
2 parents 5c7abd4 + afa5854 commit a469527
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@ git config --global user.name "$GIT_USER_NAME"
git config --global user.email $GIT_USER_EMAIL

# Install the Heroku gem (or the Heroku toolbelt)
- gem install $PROVIDER
gem install $PROVIDER
# Add your Heroku git repo:
- git remote rm $PROVIDER ;
- git remote add $PROVIDER git@$PROVIDER.com:$PROVIDER_APP_NAME.git ;
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
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
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
$PROVIDER keys:clear
# Add a new SSH key to Heroku
- yes | $PROVIDER keys:add
yes | $PROVIDER keys:add

- git add dist/ ;
- git checkout -b $NEW_TRAVIS_BRANCH ;
- git commit -m "$TRAVIS_COMMIT_MESSAGE" ;
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 ;
yes | git push $PROVIDER $NEW_TRAVIS_BRANCH:$PROVIDER_BRANCH ;


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

0 comments on commit a469527

Please sign in to comment.