Skip to content

Commit e84becc

Browse files
Fix doc publish
1 parent 3230380 commit e84becc

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.travis.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,12 @@ jobs:
170170
stage: tools
171171
# TOOLS:
172172
- name: "Documentation"
173-
install: cargo install mdbook
173+
before_install:
174+
- sudo add-apt-repository -y ppa:deadsnakes/ppa
175+
- sudo apt-get update -y
176+
- sudo apt-get install -y python3.7 python3.7-pip
177+
install:
178+
- cargo install mdbook
174179
script: ci/dox.sh
175180
stage: tools
176181
- name: "rustfmt"

ci/dox.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ cp -r perf-guide/book target/doc/perf-guide
1818

1919
# If we're on travis, not a PR, and on the right branch, publish!
2020
if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then
21-
pip install ghp_import --install-option="--prefix=$HOME/.local"
22-
$HOME/.local/bin/ghp-import -n target/doc
21+
python3 -vV
22+
pip -vV
23+
python3.7 -vV
24+
pip install ghp_import --user
25+
ghp-import -n target/doc
2326
git push -qf https://${GH_PAGES}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
2427
fi

0 commit comments

Comments
 (0)