Skip to content

Commit

Permalink
Updated circleci configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
IusanMihai committed Mar 1, 2021
1 parent 7607052 commit e7491fa
Showing 1 changed file with 47 additions and 7 deletions.
54 changes: 47 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,49 @@
version: 2.1
# Java Maven CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-java/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
#- image: circleci/openjdk:8-jdk
- image: circleci/openjdk:11-browsers-legacy

orbs:
maven: circleci/[email protected]
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4

workflows:
maven_test:
jobs:
- maven/test
working_directory: ~/spring5-recipe-app

environment:
# Customize the JVM maximum heap limit
MAVEN_OPTS: -Xmx3200m

steps:
- checkout

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

- run: mvn dependency:go-offline

- save_cache:
paths:
- ~/.m2
key: spring5-recipe-app-{{ checksum "pom.xml" }}

# run tests!
- run: mvn integration-test

- store_test_results:
path: target/surefire-reports

- run:
name: Send to CodeCov
command: bash <(curl -s https://codecov.io/bash)

0 comments on commit e7491fa

Please sign in to comment.