Skip to content

Commit

Permalink
docs: jsdoc + travis auto build to gh-pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Aug 27, 2014
1 parent 454fcc5 commit dce251d
Show file tree
Hide file tree
Showing 33 changed files with 9,181 additions and 639 deletions.
18 changes: 18 additions & 0 deletions .jsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"opts": {
"destination": "docs",
"encoding": "utf-8"
},
"plugins": [
"plugins/markdown"
],
"source": {
"include": [
"lib/datastore/index.js",
"lib/datastore/dataset.js",
"lib/datastore/query.js",
"lib/storage/index.js",
"lib/index.js"
]
}
}
29 changes: 26 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
language: node_js
script: "npm run-script lint && npm run-script test"
language:
node_js
node_js:
- "0.10"
- 0.10
branches:
only:
- master
env:
global:
- secure: "B1vanjI2TMf+YnmbcF5HWAMNnmT+CFr2EB1CCIcyoWqs2RIBvgiDH0gDR46iUDdfPRSt3Eokaru1fY8ptZDRnrt3oKokWp4ZrRO0x7uUGbkGfdmHHxnOlUA1m9rVhaOBCWl5opfaA8ncWcXwdWZGg7HWpS7EfTNr2dIr7lAC2mU="
- GH_OWNER: GoogleCloudPlatform
- GH_PROJECT_NAME: gcloud-node
script:
- npm run lint
- npm run test
after_success:
- git submodule add -b gh-pages https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} site > /dev/null 2>&1
- cd site
- if git checkout gh-pages; then git checkout -b gh-pages; fi
- git rm -r .
- cp -R ../docs/* .
- cp ../docs/.* .
- git add -f .
- git config user.email "sawchuk@gmail.com"
- git config user.name "stephenplusplus"
- git commit -am "building gh-pages [ci skip]"
- git push https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} HEAD:gh-pages > /dev/null 2>&1
Loading

0 comments on commit dce251d

Please sign in to comment.