Skip to content

Commit dc15ca5

Browse files
committed
Don't use travis-cargo to upload docs
1 parent 429a782 commit dc15ca5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ matrix:
9898
- rust: stable
9999

100100
before_script:
101-
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
102101
- curl https://static.rust-lang.org/rustup.sh |
103102
sh -s -- --add-target=$TARGET --disable-sudo -y --prefix=`rustc --print sysroot`
104103
- if [ ! -z "$ALT" ]; then
@@ -111,8 +110,13 @@ script:
111110
else
112111
src/ci/docker/run.sh $IMAGE $TARGET;
113112
fi
114-
after_success:
115-
- travis-cargo --only nightly doc-upload
113+
after_success: |
114+
[ $TRAVIS_BRANCH = master ] &&
115+
[ $TRAVIS_PULL_REQUEST = false ] &&
116+
[ $(uname -s) = Linux ] &&
117+
pip install ghp-import --user $USER &&
118+
$HOME/.local/bin/ghp-import -n target/doc &&
119+
git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
116120
117121
env:
118122
global:

0 commit comments

Comments
 (0)