Fix CI by installing tarpaulin from git, so that Cargo.lock is not ignored
@@ -10,7 +10,6 @@ jobs:
RUST_BACKTRACE: "1"
RUSTFLAGS: "-Dwarnings"
FAIL_POINT: "1"
- TARPAULIN_VERSION: "0.6.1"
steps:
- run:
name: Updating PATH and Define Environment Variable at Runtime
@@ -71,11 +70,8 @@ jobs:
- run:
name: Installing tarpaulin
command: |
- CURRENT_TARPAULIN_VERSION=`(cargo tarpaulin --version || echo "0") | awk '{ print $3 }'`
- echo "Tarpaulin version is now: ${CURRENT_TARPAULIN_VERSION}"
- echo "Tarpaulin version should be: ${TARPAULIN_VERSION}"
- if [[ "${CURRENT_TARPAULIN_VERSION}" != "${TARPAULIN_VERSION}" ]]; then
- RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin --version ${TARPAULIN_VERSION} --force
+ if [[ "${CIRCLE_BRANCH}" == "master" ]]; then
+ RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin --git https://github.com/xd009642/tarpaulin --tag 0.6.3 --force
fi
- restore_cache:
# Actually master does not need to download the cache. However we cannot make conditions here.
