Skip to content

Commit

Permalink
Run "bin/ensure-up-to-date.sh" for SNAPSHOT version only (OpenAPITool…
Browse files Browse the repository at this point in the history
…s#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.
  • Loading branch information
karismann authored and wing328 committed Mar 3, 2019
1 parent 8843df6 commit 24df02a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions CI/circle_parallel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24df02a

Please sign in to comment.