Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 72d88e7

Browse files
committed
Updates caches used
1 parent 8e6b73b commit 72d88e7

File tree

1 file changed

+14
-21
lines changed

1 file changed

+14
-21
lines changed

.circleci/config.yml

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ commands: # a reusable command with parameters
66
default: "unset"
77
type: string
88
steps:
9-
# Restore the dependency cache
10-
- restore_cache:
11-
keys:
12-
# Default branch if not
13-
- source-v2-{{ .Branch }}-{{ .Revision }}
14-
- source-v2-{{ .Branch }}-
15-
- source-v2-
169
# The following `checkout` command checks out your code to your working directory. In 1.0 we did this implicitly. In 2.0 you can choose where in the course of a job your code should be checked out.
1710
- checkout
1811
# Prepare for artifact and test results collection equivalent to how it was done on 1.0.
@@ -27,20 +20,6 @@ commands: # a reusable command with parameters
2720
name: "Setup custom environment variables"
2821
command: echo 'export CIRCLE_JOB_ID="<<parameters.jobId>>"' >> $BASH_ENV
2922
- run: ./.circleci/parallel.sh
30-
# Save dependency cache
31-
- save_cache:
32-
key: source-v2-{{ .Branch }}-{{ .Revision }}
33-
paths:
34-
# This is a broad list of cache paths to include many possible development environments
35-
# You can probably delete some of these entries
36-
- ~/.m2
37-
# save "default" cache using the key "source-v2-"
38-
- save_cache:
39-
key: source-v2-
40-
paths:
41-
# This is a broad list of cache paths to include many possible development environments
42-
# You can probably delete some of these entries
43-
- ~/.m2
4423
# Teardown
4524
# If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each
4625
# Save test results
@@ -89,8 +68,15 @@ jobs:
8968
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
9069
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
9170
steps:
71+
- restore_cache:
72+
keys:
73+
- buildCommandLineTool
9274
- command_build_and_test:
9375
jobId: "ensureSamplesAndGeneratorDocsUpToDate"
76+
- save_cache:
77+
key: buildCommandLineTool
78+
paths:
79+
- ~/.m2
9480
mvnCleanInstall:
9581
machine:
9682
image: ubuntu-2004:202201-02
@@ -100,8 +86,15 @@ jobs:
10086
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
10187
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
10288
steps:
89+
- restore_cache:
90+
keys:
91+
- buildCommandLineTool
10392
- command_build_and_test:
10493
jobId: "mvnCleanInstall"
94+
- save_cache:
95+
key: buildCommandLineTool
96+
paths:
97+
- ~/.m2
10598
testPython38ClientSamples:
10699
docker:
107100
- image: python:3.8

0 commit comments

Comments
 (0)