From 2c1d45137fcd6366c8fa687fa71867dd5ae2b8af Mon Sep 17 00:00:00 2001 From: Joshua Wiens Date: Mon, 2 Apr 2018 16:31:32 -0500 Subject: [PATCH] ci(circle): Short circuit canary suite - Leverages a global npm lib in the container to check Webpack dist-tag versions --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9ab3d901..a8bc3e00 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,7 +24,7 @@ canary_tests: &canary_tests command: npm i --no-save webpack@next - run: name: Run unit tests. - command: npm run ci:test + command: if [[ $(compver --name webpack --gte next --lt latest) < 1 ]] ; then printf "n00p Canary Suite"; else npm run test ; fi version: 2 jobs: