Skip to content

Commit

Permalink
Merge #24
Browse files Browse the repository at this point in the history
24: Fix broken book publishing on Travis r=therealprof a=yerke

The books were not published on https://docs.rust-embedded.org/ since March 16 2020. Last successful build [here](https://travis-ci.org/github/rust-embedded/docs/builds/662804843), first broken build [here](https://travis-ci.org/github/rust-embedded/docs/builds/663216351). [Here](https://travis-ci.org/github/rust-embedded/docs/builds) you can see the long list of failures.

I took the changes from https://github.com/rust-embedded/discovery/blob/d42012eedb4216ae8b613c3fdfdb37f85f01656f/ci/install.sh .

For proof that the changes fix the issue see my fork in https://github.com/yerke/docs, which was successfully built with Travis in [here](https://travis-ci.com/github/yerke/docs/builds/174282136). You can see built artifacts at https://github.com/yerke/yerke.github.io/tree/gh-pages and https://yerke.github.io .

Closes #8, rust-embedded/wg#457, rust-embedded/discovery#253

Co-authored-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
  • Loading branch information
bors[bot] and yerke authored Jul 4, 2020
2 parents 3dddc79 + 2f6af74 commit 9ad8d55
Showing 1 changed file with 8 additions and 5 deletions.
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

0 comments on commit 9ad8d55

Please sign in to comment.