Skip to content

Commit 8dd3ecc

Browse files
committed
Add master doc
1 parent c4979f1 commit 8dd3ecc

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ install:
3737

3838
script:
3939
- ./ci/travis/test.sh
40+
41+
after_success:
42+
- ./ci/travis/deploy.sh

ci/travis/deploy.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
if [["$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" && \
4+
"$TRAVIS_RUST_VERSION" == "nightly" ]]; then
5+
cargo doc --all-features --no-deps &&
6+
echo "<meta http-equiv=refresh content=0;url=os_balloon/index.html>" > target/doc/index.html &&
7+
git clone https://github.com/davisp/ghp-import.git &&
8+
./ghp-import/ghp_import.py -n \
9+
-p \
10+
-f \
11+
-m "Documentation upload" \
12+
-r https://"$GH_TOKEN"@github.com/"$TRAVIS_REPO_SLUG.git" \
13+
target/doc &&
14+
echo "Uploaded documentation"
15+
fi

0 commit comments

Comments
 (0)