Skip to content

Commit cac52e0

Browse files
authored
Merge pull request #31 from surabhi226005/feature/ss/test-ci-5
Feature/ss/test ci 5
2 parents 06916a1 + 53d62a0 commit cac52e0

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ after_script:
1313
- npm report-coverage
1414
before_script:
1515
- npm install -g gulp-cli
16+
- git fetch --all --unshallow
1617
deploy:
1718
app: $APP_NAME
1819
provider: $PROVIDER

travis.sh

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,38 @@
1-
# vi /etc/ssh/ssh_config
2-
# i Host 192.168.0.* StrictHostKeyChecking no UserKnownHostsFile=/dev/null
3-
4-
# cd ~/.ssh
5-
# rm known_hosts
6-
# ln -s /dev/null known_hosts
7-
81
git config --global user.name "$GIT_USER_NAME"
2+
93
git config --global user.email $GIT_USER_EMAIL
104

115
# Install the Heroku gem (or the Heroku toolbelt)
126
gem install $PROVIDER
7+
138
# Add your Heroku git repo:
149
git remote rm $PROVIDER ;
10+
1511
git remote add $PROVIDER git@$PROVIDER.com:$PROVIDER_APP_NAME.git ;
12+
1613
# Add your Heroku API key:
1714
export HEROKU_API_KEY=$HEROKU_API_KEY
15+
1816
# Turn off warnings about SSH keys:
1917
echo " Host heroku.com" >> ~/.ssh/config
18+
2019
echo " StrictHostKeyChecking no" >> ~/.ssh/config
20+
2121
echo " CheckHostIP no" >> ~/.ssh/config
22+
2223
echo " UserKnownHostsFile=/dev/null" >> ~/.ssh/config
24+
2325
# Clear your current Heroku SSH keys:
2426
$PROVIDER keys:clear
27+
2528
# Add a new SSH key to Heroku
2629
yes | $PROVIDER keys:add
2730

2831
git add dist/ ;
32+
2933
git checkout -b $NEW_TRAVIS_BRANCH ;
30-
git commit -m "$TRAVIS_COMMIT_MESSAGE" ;
31-
# Push to Heroku!
32-
git fetch --all --unshallow
33-
yes | git push --force $PROVIDER $NEW_TRAVIS_BRANCH:$PROVIDER_BRANCH ;
3434

35+
git commit -m "$TRAVIS_COMMIT_MESSAGE" ;
3536

36-
# echo -e "yes" | ./travis.sh
37+
# Push to Heroku
38+
yes | git push --force $PROVIDER $NEW_TRAVIS_BRANCH:$PROVIDER_BRANCH ;

0 commit comments

Comments
 (0)