-
Notifications
You must be signed in to change notification settings - Fork 695
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add travis script to auto-fetch develop from GitHub after a PR is merged
- Loading branch information
1 parent
4382e00
commit 7635d21
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
|
||
# set -o errexit -o nounset | ||
|
||
# if [ "$TRAVIS_BRANCH" != "master" ] | ||
# then | ||
# echo "This commit was made against the $TRAVIS_BRANCH and not the master! No deploy!" | ||
# exit 0 | ||
# fi | ||
|
||
# rev=$(git rev-parse --short HEAD) | ||
|
||
# cd stage/_book | ||
|
||
# git init | ||
git config user.name "Surabhi Sharma" | ||
git config user.email "[email protected]" | ||
|
||
#git remote add upstream "https://[email protected]/rust-lang/rust-by-example.git" | ||
git remote add upstream "https://github.com/surabhi226005/express-mongoose-es6-rest-api.git" | ||
echo "Remote branch added" | ||
git fetch | ||
echo "Remote fetched" | ||
git branch --track develop origin/develop | ||
echo "will not come here" | ||
git branch | ||
git checkout develop | ||
|
||
#git fetch upstream | ||
#git reset upstream/gh-pages | ||
|
||
#echo "rustbyexample.com" > CNAME | ||
|
||
# touch . | ||
|
||
# git add -A . | ||
# git commit -m "rebuild pages at ${rev}" | ||
# git push -q upstream HEAD:gh-pages |