Skip to content

Commit 0285332

Browse files
committed
Initial GH Pages support for documentation.
1 parent 2e40f91 commit 0285332

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.travis.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,29 @@ matrix:
5555
packages:
5656
- *BASE_PACKAGES
5757
- llvm-3.7-dev
58+
- deploy: # Documentation build; Only latest supported LLVM version for now
59+
provider: pages
60+
skip-cleanup: true
61+
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
62+
keep-history: false
63+
local-dir: target/doc/
64+
on:
65+
branch: master
66+
script:
67+
- cargo doc --no-default-features --features llvm3-7
68+
- echo '<meta http-equiv="refresh" content="1; url=inkwell/index.html">' > target/doc/index.html
69+
after_success:
70+
rust: nightly
71+
addons:
72+
apt:
73+
sources:
74+
- *BASE_SOURCES
75+
# - llvm-toolchain-precise-3.6
76+
- llvm-toolchain-precise-3.7
77+
packages:
78+
- *BASE_PACKAGES
79+
# - llvm-3.6-dev
80+
- llvm-3.7-dev
5881

5982
env:
6083
global:

0 commit comments

Comments
 (0)