From db566c54caa8eaf1738f5524a479d851deab9c32 Mon Sep 17 00:00:00 2001 From: Wolf Posdorfer Date: Wed, 25 Oct 2017 15:20:09 +0200 Subject: [PATCH] CircleCI? --- circle.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ settings.xml | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 circle.yml create mode 100644 settings.xml diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..1cf8609 --- /dev/null +++ b/circle.yml @@ -0,0 +1,42 @@ +# 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 + + # 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 + + working_directory: ~/repo + + environment: + # Customize the JVM maximum heap limit + MAVEN_OPTS: -Xmx3200m + + 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- + + - run: mvn dependency:go-offline + + - save_cache: + paths: + - ~/.m2 + key: v1-dependencies-{{ checksum "pom.xml" }} + + # run tests! + - run: mvn clean install + diff --git a/settings.xml b/settings.xml new file mode 100644 index 0000000..4174b86 --- /dev/null +++ b/settings.xml @@ -0,0 +1,43 @@ + + + + sonatype-nexus-snapshots + ${env.SONATYPE_USER} + ${env.SONATYPE_PASSWORD} + + + sonatype-nexus-staging + ${env.SONATYPE_USER} + ${env.SONATYPE_PASSWORD} + + + ossrh + ${env.SONATYPE_JIRA_USER} + ${env.SONATYPE_JIRA_PASS} + + + + + gpg + + ${env.GPG_PASSPHRASE} + + + +sonatype-staging + + +sonatype-staging +https://oss.sonatype.org/service/local/staging/deploy/maven2/ +default +true + + + + + + gpg + sonatype-staging + +