Skip to content

Commit a5ce244

Browse files
authored
Publish artifacts to Maven Local before running examples on CircleCI (#903)
1 parent 524bd10 commit a5ce244

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

circle.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,13 @@ jobs:
8787
examples:
8888
steps:
8989
- checkout
90+
- restore_cache:
91+
key: examples-maven
9092
- run:
91-
command: mvn -B -f examples/pom.xml test
93+
name: Publish JARs to Maven Local
94+
command: ./gradlew --no-daemon publishToMavenLocal
95+
- run:
96+
command: mvn -B -f examples/pom.xml -Dtestcontainers.group=org.testcontainers -Dtestcontainers.version=unspecified test
9297
- run:
9398
name: Save test results
9499
command: |
@@ -99,6 +104,10 @@ jobs:
99104
path: ~/junit
100105
- store_artifacts:
101106
path: ~/junit
107+
- save_cache:
108+
paths:
109+
- ~/.m2
110+
key: examples-maven
102111

103112
workflows:
104113
version: 2

0 commit comments

Comments
 (0)