forked from loafle/openapi-generator-original
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.
This commit is contained in:
parent
8843df65a4
commit
24df02a191
@ -13,11 +13,13 @@ if [ "$NODE_INDEX" = "1" ]; then
|
|||||||
java -version
|
java -version
|
||||||
mvn --quiet verify -Psamples.circleci
|
mvn --quiet verify -Psamples.circleci
|
||||||
elif [ "$NODE_INDEX" = "2" ]; then
|
elif [ "$NODE_INDEX" = "2" ]; then
|
||||||
echo "Running node $NODE_INDEX to test ensure-up-to-date"
|
# run ensure-up-to-date sample script on SNAPSHOT version only
|
||||||
java -version
|
project_version=`mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout`
|
||||||
#export GO_POST_PROCESS_FILE="/usr/local/bin/gofmt -w"
|
if [[ $project_version == *"-SNAPSHOT" ]]; then
|
||||||
# not formatting the code as different go versions may format the code a bit different
|
echo "Running node $NODE_INDEX to test ensure-up-to-date"
|
||||||
./bin/utils/ensure-up-to-date
|
java -version
|
||||||
|
./bin/utils/ensure-up-to-date
|
||||||
|
fi
|
||||||
elif [ "$NODE_INDEX" = "3" ]; then
|
elif [ "$NODE_INDEX" = "3" ]; then
|
||||||
echo "Running node $NODE_INDEX to test haskell"
|
echo "Running node $NODE_INDEX to test haskell"
|
||||||
# install haskell
|
# install haskell
|
||||||
|
Loading…
x
Reference in New Issue
Block a user