mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 10:58:55 +00:00
28 lines
863 B
Bash
Executable File
28 lines
863 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# A bash script to run CircleCI node/test in parallel
|
|
#
|
|
|
|
NODE_INDEX=${CIRCLE_NODE_INDEX:-0}
|
|
|
|
if [ "$NODE_INDEX" = "1" ]; then
|
|
echo "Running node $NODE_INDEX to test 'samples.circleci' defined in pom.xml ..."
|
|
#cp CI/pom.xml.circleci pom.xml
|
|
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
|
|
else
|
|
echo "Running node $NODE_INDEX to test 'samples.circleci.jdk7' defined in pom.xml ..."
|
|
sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
|
|
java -version
|
|
#cp CI/pom.xml.circleci.java7 pom.xml
|
|
mvn --quiet verify -Psamples.circleci.jdk7
|
|
fi
|
|
|
|
|