diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..d095d5b --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,41 @@ +# 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 integration-test diff --git a/README.md b/README.md index cfde326..9cd5d7e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ [![Build Status](https://travis-ci.org/qct-snippets/devops-demo.svg?branch=master)](https://travis-ci.org/qct-snippets/devops-demo) +[![CircleCI](https://circleci.com/gh/qct-snippets/devops-demo.svg?style=svg)](https://circleci.com/gh/qct-snippets/devops-demo) [![codecov](https://codecov.io/gh/qct-snippets/devops-demo/branch/master/graph/badge.svg)](https://codecov.io/gh/qct-snippets/devops-demo) [![Maintainability](https://api.codeclimate.com/v1/badges/c3324f274f39af189f16/maintainability)](https://codeclimate.com/github/qct-snippets/devops-demo/maintainability) ## Demo for Dev-Ops with github ecosystem -* travis \ No newline at end of file +* travis diff --git a/shippable.yml b/shippable.yml new file mode 100644 index 0000000..45e9d6b --- /dev/null +++ b/shippable.yml @@ -0,0 +1,4 @@ +language: java + +jdk: + - oraclejdk8