We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d62fe80 + 14e2fc8 commit 5488e80Copy full SHA for 5488e80
.travis.yml
@@ -7,7 +7,16 @@ branches:
7
only:
8
- master
9
before_script:
10
- - (cargo install mdbook --git https://github.com/azerupi/mdBook.git --force || true)
+ - |
11
+ LATEST=$(cargo search mdbook | grep "^mdbook =" | cut -d '"' -f 2)
12
+ INSTALLED=$(cargo install --list | grep "^mdbook " | cut -d v -f 2 | tr -d :)
13
+ if [ "$INSTALLED" != "$LATEST" ]; then
14
+ if [ "$INSTALLED" != "" ]; then
15
+ echo "mdbook '$INSTALLED' is already installed"
16
+ fi
17
+ echo "Installing mdbook '$LATEST'"
18
+ cargo install mdbook --force --vers "$LATEST"
19
20
script:
21
- mdbook build
22
- mdbook test
0 commit comments