Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1305 from tgriesser/feature/gh-pages-script
gh-pages and postrelease script
- Loading branch information
Showing
5 changed files
with
41 additions
and
88 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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
# .travis.yml | ||
language: node_js | ||
|
||
services: | ||
- postgresql | ||
- mysql | ||
|
||
sudo: false | ||
|
||
node_js: | ||
|
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,19 @@ | ||
#!/bin/bash -e | ||
|
||
# Checkout and update gh-pages branch. | ||
git checkout -B gh-pages origin/gh-pages | ||
|
||
# Update to master. | ||
git pull origin master | ||
|
||
# Regenate documentation. | ||
npm run jsdoc | ||
|
||
# We must force add because these are usually ignored. | ||
git add --force --all index.html docs | ||
|
||
# Commit changes. | ||
git commit -m "Update docs" | ||
|
||
# Push the update. | ||
git push origin gh-pages |
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,13 @@ | ||
#!/bin/bash -e | ||
|
||
get_property() { | ||
echo $(node -p "p=require('./${1}').${2};") | ||
} | ||
|
||
version="$(get_property 'package.json' 'version')" | ||
|
||
git commit -am "Release $version" | ||
git tag $version | ||
|
||
git push origin master | ||
git push origin master --tags |
This file was deleted.
Oops, something went wrong.