Skip to content

Commit

Permalink
Restore cache in deploy jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollovati committed Jun 11, 2019
1 parent 5ee84fc commit 908d420
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,22 @@ jobs:
steps:
- checkout

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "pom.xml" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- v2-dependencies-{{ checksum "pom.xml" }}
- v2-dependencies-

# TODO: does not work well with multimodule project
#- run: mvn dependency:resolve-plugins dependency:go-offline

- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "pom.xml" }}

# run tests!
- run: ./mvnw -N install
- run: ./mvnw install
- save_cache:
paths:
- ~/.m2
key: v2-dependencies-{{ checksum "pom.xml" }}
- run:
name: Save test results
command: |
Expand All @@ -64,6 +62,10 @@ jobs:
MAVEN_CONFIG: "-s .circleci/.circleci.settings.xml"
steps:
- checkout
- restore_cache:
keys:
- v2-dependencies-{{ checksum "pom.xml" }}
- v2-dependencies-
- run: ./mvnw -Prelease,release-vaadin8 -pl :vertx-vaadin8 -am -DskipTests clean deploy
- run: ./tools/build_v8_widgetsets.sh
deploy-vaadin-flow:
Expand All @@ -76,6 +78,10 @@ jobs:
MAVEN_CONFIG: "-s .circleci/.circleci.settings.xml"
steps:
- checkout
- restore_cache:
keys:
- v2-dependencies-{{ checksum "pom.xml" }}
- v2-dependencies-
- run: ./mvnw -Prelease,release-flow -pl :vertx-vaadin-flow -DskipTests clean deploy


Expand Down

0 comments on commit 908d420

Please sign in to comment.