Skip to content

Commit 15ff0b7

Browse files
committed
improvements to travis setup -- cache, use command -v
1 parent 74916aa commit 15ff0b7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
language: rust
22

3-
cache: pip
3+
cache:
4+
- pip
5+
- cargo
46

57
install:
68
- source ~/.cargo/env || true

ci/install.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash
22
set -ex
33

4-
cargo install cargo install mdbook --vers "0.0.28"
4+
if command -v mdbook >/dev/null 2>&1; then
5+
cargo install mdbook --vers "0.0.28"
6+
fi
57

68
if command -v ghp-import >/dev/null 2>&1; then
79
pip install ghp-import

0 commit comments

Comments
 (0)