Skip to content

Commit fed2b04

Browse files
committed
ci: use travis to automatically build documentation
Currently, HTML pages must be built manually through: cd docs && rake This is not very practical and there are good chances that the doc will soon fall out of sync. To prevent that, use Travis to build the documentation and push it to `netdsa/netdsa.github.io`. That way, online documentation should always be in sync with the code.
1 parent a835668 commit fed2b04

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
language: ruby
2+
rvm:
3+
- 2.2
4+
5+
branches:
6+
only:
7+
master
8+
9+
install: gem install asciidoctor
10+
11+
script: cd docs && rake
12+
13+
deploy:
14+
provider: pages
15+
local-dir: docs
16+
repo: netdsa/netdsa.github.io
17+
skip-cleanup: true
18+
github-token: $GITHUB_TOKEN
19+
keep-history: true
20+
target-branch: master

0 commit comments

Comments
 (0)