diff --git a/substrate/.gitlab-ci.yml b/substrate/.gitlab-ci.yml index c6f23cd45f..6af3eb6b22 100644 --- a/substrate/.gitlab-ci.yml +++ b/substrate/.gitlab-ci.yml @@ -68,8 +68,9 @@ test:rust:stable: &test tags: - linux-docker before_script: - - echo "build cache size:" - - du -hs ${CARGO_HOME} ./target + - test -d ${CARGO_HOME} -a -d ./target && + echo "build cache size:" && + du -hs ${CARGO_HOME} ./target - ./scripts/build.sh script: - time cargo test --all --release --verbose --locked