From 24df02a191220d4093655dd58bee55fd8e05eec1 Mon Sep 17 00:00:00 2001 From: Vincent Devos <46601673+karismann@users.noreply.github.com> Date: Sun, 3 Mar 2019 17:06:30 +0100 Subject: [PATCH] Run "bin/ensure-up-to-date.sh" for SNAPSHOT version only (#2286) Now we've to manually comment/uncomment the line before/after the release. Ideally the script "ensure-up-to-date.sh" should only run for SNAPSHOT version only. --- CI/circle_parallel.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/CI/circle_parallel.sh b/CI/circle_parallel.sh index 1d36c0b3091..d9df86eae42 100755 --- a/CI/circle_parallel.sh +++ b/CI/circle_parallel.sh @@ -13,11 +13,13 @@ if [ "$NODE_INDEX" = "1" ]; then java -version mvn --quiet verify -Psamples.circleci elif [ "$NODE_INDEX" = "2" ]; then - echo "Running node $NODE_INDEX to test ensure-up-to-date" - java -version - #export GO_POST_PROCESS_FILE="/usr/local/bin/gofmt -w" - # not formatting the code as different go versions may format the code a bit different - ./bin/utils/ensure-up-to-date + # run ensure-up-to-date sample script on SNAPSHOT version only + project_version=`mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout` + if [[ $project_version == *"-SNAPSHOT" ]]; then + echo "Running node $NODE_INDEX to test ensure-up-to-date" + java -version + ./bin/utils/ensure-up-to-date + fi elif [ "$NODE_INDEX" = "3" ]; then echo "Running node $NODE_INDEX to test haskell" # install haskell