Skip to content

Commit a469527

Browse files
authored
Merge pull request #27 from surabhi226005/feature/ss/test-ci-5
Integrate heroku in travis setup
2 parents 5c7abd4 + afa5854 commit a469527

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

travis.sh

+14-14
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@ git config --global user.name "$GIT_USER_NAME"
99
git config --global user.email $GIT_USER_EMAIL
1010

1111
# Install the Heroku gem (or the Heroku toolbelt)
12-
- gem install $PROVIDER
12+
gem install $PROVIDER
1313
# Add your Heroku git repo:
14-
- git remote rm $PROVIDER ;
15-
- git remote add $PROVIDER git@$PROVIDER.com:$PROVIDER_APP_NAME.git ;
14+
git remote rm $PROVIDER ;
15+
git remote add $PROVIDER git@$PROVIDER.com:$PROVIDER_APP_NAME.git ;
1616
# Add your Heroku API key:
17-
- export HEROKU_API_KEY=$HEROKU_API_KEY
17+
export HEROKU_API_KEY=$HEROKU_API_KEY
1818
# Turn off warnings about SSH keys:
19-
- echo " Host heroku.com" >> ~/.ssh/config
20-
- echo " StrictHostKeyChecking no" >> ~/.ssh/config
21-
- echo " CheckHostIP no" >> ~/.ssh/config
22-
- echo " UserKnownHostsFile=/dev/null" >> ~/.ssh/config
19+
echo " Host heroku.com" >> ~/.ssh/config
20+
echo " StrictHostKeyChecking no" >> ~/.ssh/config
21+
echo " CheckHostIP no" >> ~/.ssh/config
22+
echo " UserKnownHostsFile=/dev/null" >> ~/.ssh/config
2323
# Clear your current Heroku SSH keys:
24-
- $PROVIDER keys:clear
24+
$PROVIDER keys:clear
2525
# Add a new SSH key to Heroku
26-
- yes | $PROVIDER keys:add
26+
yes | $PROVIDER keys:add
2727

28-
- git add dist/ ;
29-
- git checkout -b $NEW_TRAVIS_BRANCH ;
30-
- git commit -m "$TRAVIS_COMMIT_MESSAGE" ;
28+
git add dist/ ;
29+
git checkout -b $NEW_TRAVIS_BRANCH ;
30+
git commit -m "$TRAVIS_COMMIT_MESSAGE" ;
3131
# Push to Heroku!
32-
- yes | git push $PROVIDER $NEW_TRAVIS_BRANCH:$PROVIDER_BRANCH ;
32+
yes | git push $PROVIDER $NEW_TRAVIS_BRANCH:$PROVIDER_BRANCH ;
3333

3434

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

0 commit comments

Comments
 (0)