improvements to travis setup -- cache, use command -v
This commit is contained in:
parent
246dee63e4
commit
864a71fda0
|
|
@ -1,6 +1,8 @@
|
||||||
language: rust
|
language: rust
|
||||||
|
|
||||||
cache: pip
|
cache:
|
||||||
|
- pip
|
||||||
|
- cargo
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- source ~/.cargo/env || true
|
- source ~/.cargo/env || true
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
cargo install cargo install mdbook --vers "0.0.28"
|
if command -v mdbook >/dev/null 2>&1; then
|
||||||
|
cargo install mdbook --vers "0.0.28"
|
||||||
|
fi
|
||||||
|
|
||||||
if command -v ghp-import >/dev/null 2>&1; then
|
if command -v ghp-import >/dev/null 2>&1; then
|
||||||
pip install ghp-import
|
pip install ghp-import
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue