Skip to content

Commit 4eae005

Browse files
committed
Fix doc build
1 parent aab66cf commit 4eae005

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

.travis.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,12 @@ install:
3838
script:
3939
- ./ci/travis/test.sh
4040

41-
after_success:
42-
- ./ci/travis/deploy.sh
41+
deploy:
42+
- provider: script
43+
skip-cleanup: true
44+
script: ./ci/travis/deploy.sh
45+
on:
46+
branch: master
47+
repo: rust-numpy/rust-numpy
48+
python: 3.6
49+

ci/travis/deploy.sh

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
#!/bin/sh
22

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
3+
cargo doc --all-features --no-deps &&
4+
echo "<meta http-equiv=refresh content=0;url=os_balloon/index.html>" > target/doc/index.html &&
5+
git clone https://github.com/davisp/ghp-import.git &&
6+
./ghp-import/ghp_import.py -n \
7+
-p \
8+
-f \
9+
-m "Documentation upload" \
10+
-r https://"$GH_TOKEN"@github.com/"$TRAVIS_REPO_SLUG.git" \
11+
target/doc &&
12+
echo "Uploaded documentation"
13+

0 commit comments

Comments
 (0)