-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pull requests now don't trigger deploy scripts, extracted CI pushback…
… script to push.sh
- Loading branch information
Showing
3 changed files
with
14 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,18 +7,12 @@ before_install: | |
- brew install pandoc | ||
# - sudo apt-get install pandoc | ||
script: | ||
- npm config set git-tag-version=false | ||
- NPM_VERSION=$(npm version patch) | ||
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm config set git-tag-version=false && NPM_VERSION=$(npm version patch); fi | ||
- npm run build | ||
- npm test | ||
- npm run coveralls | ||
- git config --global user.email "[email protected]" | ||
- git config --global user.name "Travis CI" | ||
- git commit -a -m "${NPM_VERSION:1}" -m "[ci skip]" | ||
- git remote remove origin | ||
- git remote add origin https://${GITHUB_TOKEN}@github.com/kroitor/ccxt.git | ||
- git push origin HEAD:master | ||
- env NPM_VERSION=${NPM_VERSION:1} GITHUB_TOKEN=${GITHUB_TOKEN} ./push-wiki.sh | ||
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then env COMMIT_MESSAGE=${NPM_VERSION:1} GITHUB_TOKEN=${GITHUB_TOKEN} ./push.sh; fi | ||
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then env COMMIT_MESSAGE=${NPM_VERSION:1} GITHUB_TOKEN=${GITHUB_TOKEN} ./push-wiki.sh; fi | ||
deploy: | ||
- provider: npm | ||
email: [email protected] | ||
|
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
#!/bin/sh | ||
|
||
cd ccxt.wiki | ||
git commit -a -m ${NPM_VERSION} | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Travis CI" | ||
git commit -a -m ${COMMIT_MESSAGE} | ||
git remote remove origin | ||
git remote add origin https://${GITHUB_TOKEN}@github.com/kroitor/ccxt.wiki.git | ||
git push origin HEAD:master |
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,8 @@ | ||
#!/bin/sh | ||
|
||
git config --global user.email "[email protected]" | ||
git config --global user.name "Travis CI" | ||
git commit -a -m "${COMMIT_MESSAGE}" -m "[ci skip]" | ||
git remote remove origin | ||
git remote add origin https://${GITHUB_TOKEN}@github.com/kroitor/ccxt.git | ||
git push origin HEAD:master |