From 11467e0e60bf64eb3c1406bcc2a21d484bc61d87 Mon Sep 17 00:00:00 2001 From: johnsgp Date: Thu, 31 Oct 2019 15:44:41 +0000 Subject: [PATCH] CircleCI setup --- .circleci/config.yml | 34 ++++++++++++++++++++++++++++++++++ pom.xml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000..eb57285928 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,34 @@ +# Java Maven CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-java/ for more details +# +version: 2 +jobs: + build: + docker: + - image: circleci/openjdk:8-jdk + working_directory: ~/repo + environment: + - MAVEN_OPTS: -Xmx3200m + steps: + - checkout + - restore_cache: + keys: + - v1-dependencies-{‌{ checksum "pom.xml" }} + - v1-dependencies- + - run: mvn dependency:go-offline + - save_cache: + paths: + - ~/.m2 + key: v1-dependencies-{‌{ checksum "pom.xml" }} + - run: mvn integration-test cobertura:cobertura + - store_test_results: + path: target/surefire-reports + - run: + name: Send to CodeCov + command: bash <(curl -s https://codecov.io/bash) +workflows: + version: 2 + workflow: + jobs: + - build diff --git a/pom.xml b/pom.xml index 25bb466d7f..1a1789bbbd 100644 --- a/pom.xml +++ b/pom.xml @@ -61,6 +61,36 @@ org.springframework.boot spring-boot-maven-plugin + + org.apache.maven.plugins + maven-failsafe-plugin + 2.20 + + + **/*IT.java + + + ${basedir}/target/classes + + none + + + + + integration-test + verify + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.0 + + false + +