killbill-uncached

circleci: initial import Signed-off-by: Pierre-Alexandre

9/21/2017 12:04:35 PM

Changes

Details

diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000..fe37983
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,35 @@
+defaults: &defaults
+  docker:
+      - image: killbill/kbbuild:0.1.0
+  working_directory: ~/repo
+  environment:
+    MAVEN_OPTS: -Xmx2048m
+
+version: 2
+jobs:
+  build:
+    <<: *defaults
+    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 -DskipTests=true install dependency:go-offline
+
+      - save_cache:
+          paths:
+            - ~/.m2
+          key: v1-dependencies-{{ checksum "pom.xml" }}
+
+  test-h2:
+    <<: *defaults
+    steps:
+      - checkout
+      - restore_cache:
+          key: v1-dependencies-{{ checksum "pom.xml" }}
+      - run: mvn test -Ptravis