forked from Mermade/shins
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
35 lines (32 loc) · 1.49 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
language: node_js
node_js:
- "10"
cache:
directories:
- node_modules
install:
- npm install
- npm install -g [email protected]
script:
- curl https://raw.githubusercontent.com/BuildOnViction/rpc-swagger/master/swagger.yaml -o rpc.yaml
- curl https://raw.githubusercontent.com/BuildOnViction/tomoscan/master/server/src/docs/swagger.yml -o scan.yaml
- curl https://raw.githubusercontent.com/BuildOnViction/tomomaster/master/docs/swagger.yml -o master.yaml
- widdershins --httpsnippet true --expandBody true --search true --language_tabs 'shell:cURL' 'javascript--node:Node.JS' 'go:GO' 'ruby:Ruby' 'python:Python' 'java:Java' --summary rpc.yaml -o rpc.md
- widdershins --httpsnippet true --expandBody true --search true --language_tabs 'shell:cURL' 'javascript--node:Node.JS' 'go:GO' 'ruby:Ruby' 'python:Python' 'java:Java' --summary scan.yaml -o scan.md
- widdershins --httpsnippet true --expandBody true --search true --language_tabs 'shell:cURL' 'javascript--node:Node.JS' 'go:GO' 'ruby:Ruby' 'python:Python' 'java:Java' --summary master.yaml -o master.md
- tail -n +24 rpc.md > tmp.md && mv tmp.md rpc.md
- tail -n +24 scan.md > tmp.md && mv tmp.md scan.md
- tail -n +24 master.md > tmp.md && mv tmp.md master.md
- cat index.md rpc.md scan.md master.md > source/index.html.md
- node shins.js
- node buildstyle.js
deploy:
provider: pages
skip_cleanup: false
github-token: $GH_TOKEN
repo: BuildOnViction/apidocs
local-dir: .
target-branch: gh-pages
fqdn: apidocs.tomochain.com
on:
branch: master