From 8aae19e2dba5d5b4de59db7b66ffd2c14319ae70 Mon Sep 17 00:00:00 2001 From: gabriel klawitter Date: Wed, 6 Feb 2019 12:40:36 +0100 Subject: [PATCH] fix cache clearing error (#1703) --- substrate/.gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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