Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken book publishing on Travis #24

Merged
merged 2 commits into from
Jul 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions ci/install.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
set -euxo pipefail

main() {
local tag=$(git ls-remote --tags --refs --exit-code https://github.com/rust-lang-nursery/mdbook \
local tag=$(git ls-remote --tags --refs --exit-code \
https://github.com/rust-lang/mdbook \
| cut -d/ -f3 \
| grep -E '^v0.2.[0-9]+$' \
| grep -E '^v[0-9\.]+$' \
| sort --version-sort \
| tail -n1)
# Temporarily use older version until packages are available for 0.2.2 (or newer)
local tag="v0.2.1"

curl -LSfs https://japaric.github.io/trust/install.sh | \
sh -s -- --git rust-lang-nursery/mdbook --tag $tag
sh -s -- \
--force \
--git rust-lang/mdbook \
--tag $tag

pip install linkchecker --user
}
Expand Down