Skip to content

Commit

Permalink
Travis changes to deploy API docs to bintray
Browse files Browse the repository at this point in the history
* Add additional provider to .travis.yaml
* Create .bintray-doc.json to deploy API docs.
  • Loading branch information
Brian Parry committed Oct 6, 2016
1 parent e7f34ed commit 29e356d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 7 deletions.
File renamed without changes.
19 changes: 19 additions & 0 deletions .bintray-doc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"package": {
"name": "apidoc",
"repo": "docs",
"subject": "rackhd"
},

"version": {
"name": "master"
},

"files":
[
{
"includePattern": "build/(.+\.pdf)", "uploadPattern": "$1",
}
],
"publish": true
}
21 changes: 14 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,20 @@ before_deploy:
- ./extra/make-deb.sh

deploy:
provider: bintray
file: .bintray.json
user: $BINTRAY_USER
key: $BINTRAY_KEY
on:
branch: master
node: "4"
- provider: bintray
file: .bintray-deb.json
user: $BINTRAY_USER
key: $BINTRAY_KEY
on:
branch: master
node: "4"
- provider: bintray
file: .bintray-doc.json
user: $BINTRAY_USER
key: $BINTRAY_KEY
on:
branch: master
node: "4"

notifications:
slack:
Expand Down
1 change: 1 addition & 0 deletions extra/make-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ cd $SCRIPT_DIR/..

npm run apidoc
npm run taskdoc
npm run swaggerdoc

0 comments on commit 29e356d

Please sign in to comment.