Skip to content

Commit 0b2cb06

Browse files
authored
[CircleCI] improve execution time (#12253)
* add cache folder, remove mvn install * debug * update test * fix cache
1 parent 89d17e2 commit 0b2cb06

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.circleci/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ commands: # a reusable command with parameters
5959
# This is a broad list of cache paths to include many possible development environments
6060
# You can probably delete some of these entries
6161
- vendor/bundle
62+
- ~/.nvm
63+
- ~/.pyenv
6264
- ~/virtualenvs
6365
- ~/.m2
6466
- ~/.ivy2
@@ -78,6 +80,8 @@ commands: # a reusable command with parameters
7880
# This is a broad list of cache paths to include many possible development environments
7981
# You can probably delete some of these entries
8082
- vendor/bundle
83+
- ~/.nvm
84+
- ~/.pyenv
8185
- ~/virtualenvs
8286
- ~/.m2
8387
- ~/.ivy2

CI/circle_parallel.sh

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,14 @@ elif [ "$NODE_INDEX" = "3" ]; then
7575
mvn --no-snapshot-updates --quiet verify -Psamples.circleci.node3 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
7676

7777
elif [ "$NODE_INDEX" = "4" ]; then
78-
7978
echo "Running node $NODE_INDEX to test 'samples.circleci.node4' defined in pom.xml ..."
8079

81-
# install maven and java so we can use them to run our tests
82-
apt-get update && apt-get install -y default-jdk maven sudo
83-
java -version
84-
export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")
85-
echo $JAVA_HOME
86-
# show os version
87-
uname -a
88-
89-
mvn --no-snapshot-updates --quiet verify -Psamples.circleci.node4 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
80+
#mvn --no-snapshot-updates --quiet verify -Psamples.circleci.node4 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
81+
(cd samples/openapi3/client/petstore/python && make test)
82+
(cd samples/openapi3/client/petstore/python-experimental && make test)
9083

9184
else
9285
echo "Running node $NODE_INDEX to test 'samples.circleci.others' defined in pom.xml ..."
93-
#sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
9486
java -version
9587

9688
mvn --no-snapshot-updates --quiet verify -Psamples.circleci.others -Dorg.slf4j.simpleLogger.defaultLogLevel=error

0 commit comments

Comments
 (0)