forked from loafle/openapi-generator-original
[CircleCI] improve execution time (#12253)
* add cache folder, remove mvn install * debug * update test * fix cache
This commit is contained in:
parent
89d17e2845
commit
0b2cb06229
@ -59,6 +59,8 @@ commands: # a reusable command with parameters
|
|||||||
# This is a broad list of cache paths to include many possible development environments
|
# This is a broad list of cache paths to include many possible development environments
|
||||||
# You can probably delete some of these entries
|
# You can probably delete some of these entries
|
||||||
- vendor/bundle
|
- vendor/bundle
|
||||||
|
- ~/.nvm
|
||||||
|
- ~/.pyenv
|
||||||
- ~/virtualenvs
|
- ~/virtualenvs
|
||||||
- ~/.m2
|
- ~/.m2
|
||||||
- ~/.ivy2
|
- ~/.ivy2
|
||||||
@ -78,6 +80,8 @@ commands: # a reusable command with parameters
|
|||||||
# This is a broad list of cache paths to include many possible development environments
|
# This is a broad list of cache paths to include many possible development environments
|
||||||
# You can probably delete some of these entries
|
# You can probably delete some of these entries
|
||||||
- vendor/bundle
|
- vendor/bundle
|
||||||
|
- ~/.nvm
|
||||||
|
- ~/.pyenv
|
||||||
- ~/virtualenvs
|
- ~/virtualenvs
|
||||||
- ~/.m2
|
- ~/.m2
|
||||||
- ~/.ivy2
|
- ~/.ivy2
|
||||||
|
@ -75,22 +75,14 @@ elif [ "$NODE_INDEX" = "3" ]; then
|
|||||||
mvn --no-snapshot-updates --quiet verify -Psamples.circleci.node3 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
mvn --no-snapshot-updates --quiet verify -Psamples.circleci.node3 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
|
||||||
elif [ "$NODE_INDEX" = "4" ]; then
|
elif [ "$NODE_INDEX" = "4" ]; then
|
||||||
|
|
||||||
echo "Running node $NODE_INDEX to test 'samples.circleci.node4' defined in pom.xml ..."
|
echo "Running node $NODE_INDEX to test 'samples.circleci.node4' defined in pom.xml ..."
|
||||||
|
|
||||||
# install maven and java so we can use them to run our tests
|
#mvn --no-snapshot-updates --quiet verify -Psamples.circleci.node4 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
apt-get update && apt-get install -y default-jdk maven sudo
|
(cd samples/openapi3/client/petstore/python && make test)
|
||||||
java -version
|
(cd samples/openapi3/client/petstore/python-experimental && make test)
|
||||||
export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")
|
|
||||||
echo $JAVA_HOME
|
|
||||||
# show os version
|
|
||||||
uname -a
|
|
||||||
|
|
||||||
mvn --no-snapshot-updates --quiet verify -Psamples.circleci.node4 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Running node $NODE_INDEX to test 'samples.circleci.others' defined in pom.xml ..."
|
echo "Running node $NODE_INDEX to test 'samples.circleci.others' defined in pom.xml ..."
|
||||||
#sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
|
|
||||||
java -version
|
java -version
|
||||||
|
|
||||||
mvn --no-snapshot-updates --quiet verify -Psamples.circleci.others -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
mvn --no-snapshot-updates --quiet verify -Psamples.circleci.others -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user