From b641515d9ecbad96a50ca6a742870c990519a12e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Krupa?= <pawel@krupa.net.pl> Date: Thu, 10 Dec 2020 12:56:42 +0100 Subject: [PATCH] .circleci: run 'latest' scenario only if available --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 38f0b81..078e5d2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -36,7 +36,7 @@ jobs: echo 'No alternative test' fi - run: | - if [[ -z "${CIRCLE_PULL_REQUEST}" ]]; then + if [[ -z "${CIRCLE_PULL_REQUEST}" ]] && [[ -d 'molecule/latest' ]]; then molecule test -s latest --destroy never else echo 'Not running latest on PR' -- GitLab