From 3558bf8b9e8580cdf26c992ddcd51f21f501e27b Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Thu, 8 Aug 2019 13:04:24 +0200 Subject: [PATCH] Skip Rust code coverage on doc only changes --- .circleci/config.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2c3b3c0cd..7dd7b2fe3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -114,6 +114,13 @@ jobs: # We have to use a machine with more RAM for tests so we don't run out of memory. resource_class: "large" steps: + - run: + name: Check skip condition + command: | + if git log -1 "$CIRCLE_SHA1" | grep -q '\[doc only\]'; then + echo "Skipping this step. Last commit was tagged to not require Android tests." + circleci-agent step halt + fi - run: name: Setup custom environment variables command: |