Update tarpaulin to support the new Cargo.lock format

Unfortunately the published binary no longer works on Travis
unless the build happens on its bionic image, because the binary is
built in GitHub Actions using the ubuntu:latest image. Running in bionic isn't
guaranteed not to break in the future, so install from source and cache
the artifact to be sure.

Fortunately, cargo install no longer requires --force to update an installed binary
crate, so building from source and caching the result is simpler
than it used to be.
This commit is contained in:
Oliver Hamlet
2020-05-29 16:43:17 +01:00
parent e31456f5b9
commit d9173d37cd
+1 -2
View File
@@ -12,8 +12,7 @@ cache: cargo
install:
- rustup component add rustfmt-preview
- rustfmt --version
- curl -fsSL https://github.com/xd009642/tarpaulin/releases/download/0.9.0/cargo-tarpaulin-0.9.0-travis.tar.gz | tar xz
- mv cargo-tarpaulin ~/.cargo/bin/
- cargo install cargo-tarpaulin --version 0.10.2
before_script:
- cd tests