From be436472d95a3f2e4f00769424fc8043dca991bb Mon Sep 17 00:00:00 2001 From: G33tha Date: Wed, 16 Jan 2019 10:38:55 +0530 Subject: [PATCH] Issue #000 feat: circleci.config file --- .circleci/config.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..5f6b61071 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,36 @@ +version: 2.1 +jobs: + analytics-build: + machine: true + steps: + - checkout + - restore_cache: + key: dp-dependency-cache-{{ checksum "pom.xml" }} + - run: + name: analytics-framework-build + command: cd platform-framework && mvn clean install -DskipTests=true + - run: + name: data-products-build + command: cd platform-modules && mvn clean install -DskipTests + - run: cd platform-modules/job-manager && mvn clean package + - run: + name: lpa-api-build + command: cd platform-api && mvn clean install -DskipTests=true + - run: cd platform-api && mvn play2:dist -pl analytics-api + - save_cache: + key: dp-dependency-cache-{{ checksum "pom.xml" }} + paths: ~/.m2 + - run: mkdir temp && cp platform-framework/analytics-job-driver/target/analytics-framework-1.0.jar temp/ + - run: cp platform-modules/batch-models/target/batch-models-1.0.jar temp/ + - run: cp platform-modules/job-manager/target/job-manager-1.0-distribution.tar.gz temp/ + - run: cp platform-api/analytics-api/target/analytics-api-1.0-dist.zip temp/ + - store_artifacts: + path: temp + destination: temp/ + + +workflows: + version: 2.1 + workflow: + jobs: + - analytics-build