File tree Expand file tree Collapse file tree 2 files changed +31
-11
lines changed Expand file tree Collapse file tree 2 files changed +31
-11
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ after_script:
13
13
- npm report-coverage
14
14
before_script :
15
15
- npm install -g gulp-cli
16
+ - git fetch --all --unshallow
16
17
deploy :
17
18
app : $APP_NAME
18
19
provider : $PROVIDER
19
20
api_key :
20
21
secure : $TRAVIS_SECURE_API_KEY
21
22
after_success :
22
23
- if [ "$TRAVIS_BRANCH" == "develop" ] ; then
23
- if [ "$TRAVIS_PULL_REQUEST" == "true " ] ; then bash travis.sh ; fi ; fi
24
+ if [ "$TRAVIS_PULL_REQUEST" == "false " ] ; then bash travis.sh ; fi ; fi
Original file line number Diff line number Diff line change 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
-
8
1
git config --global user.name " $GIT_USER_NAME "
2
+
9
3
git config --global user.email $GIT_USER_EMAIL
10
4
5
+ # Install the Heroku gem (or the Heroku toolbelt)
6
+ gem install $PROVIDER
7
+
8
+ # Add your Heroku git repo:
11
9
git remote rm $PROVIDER ;
10
+
12
11
git remote add $PROVIDER git@$PROVIDER .com:$PROVIDER_APP_NAME .git ;
13
12
13
+ # Add your Heroku API key:
14
+ export HEROKU_API_KEY=$HEROKU_API_KEY
15
+
16
+ # Turn off warnings about SSH keys:
17
+ echo " Host heroku.com" >> ~ /.ssh/config
18
+
19
+ echo " StrictHostKeyChecking no" >> ~ /.ssh/config
20
+
21
+ echo " CheckHostIP no" >> ~ /.ssh/config
22
+
23
+ echo " UserKnownHostsFile=/dev/null" >> ~ /.ssh/config
24
+
25
+ # Clear your current Heroku SSH keys:
26
+ $PROVIDER keys:clear
27
+
28
+ # Add a new SSH key to Heroku
29
+ yes | $PROVIDER keys:add
30
+
14
31
git add dist/ ;
15
- git checkout -b $TRAVIS_BRANCH ;
32
+
33
+ git checkout -b $NEW_TRAVIS_BRANCH ;
34
+
16
35
git commit -m " $TRAVIS_COMMIT_MESSAGE " ;
17
- git push $PROVIDER $TRAVIS_BRANCH :PROVIDER_BRANCH ;
18
36
19
- echo -e " yes" | ./travis.sh ; fi
37
+ # Push to Heroku
38
+ yes | git push --force $PROVIDER $NEW_TRAVIS_BRANCH :$PROVIDER_BRANCH ;
You can’t perform that action at this time.
0 commit comments