From fdcf92fd8f02f1a89acc2f05f3582b30790c6b38 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Tue, 31 Oct 2017 13:17:32 -0700 Subject: [PATCH] Added CircleCI 2.0 configuration. --- .circleci/config.yml | 37 +++++++++++++++++++ .../inspectionProfiles/profiles_settings.xml | 6 +++ circle.yml | 13 ------- 3 files changed, 43 insertions(+), 13 deletions(-) create mode 100644 .circleci/config.yml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml delete mode 100644 circle.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..b59dd67 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,37 @@ +version: 2 +jobs: + build: + docker: + - image: circleci/openjdk:8-jdk + + working_directory: ~/repo + + environment: + JVM_OPTS: -Xmx3200m + TERM: dumb + + steps: + - checkout + - restore_cache: + keys: + - kobalt-dependencies-{{ checksum "kobalt/src/Build.kt" }} + # fallback to using the latest cache if no exact match is found + - kobalt-dependencies- + + - run: + name: Check Versions + command: ./kobaltw checkVersions + + - save_cache: + paths: ~/.kobalt + key: kobalt-dependencies-{{ checksum "kobalt/src/Build.kt" }} + + - run: + name: Assemble & Test + command: ./kobaltw assemble test + + - store_artifacts: + path: kobaltBuild/test-output/ + destination: test-output + - store_test_results: + path: kobaltBuild/test-output/ \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..cb2fdb3 --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/circle.yml b/circle.yml deleted file mode 100644 index 4624b95..0000000 --- a/circle.yml +++ /dev/null @@ -1,13 +0,0 @@ -machine: - java: - version: oraclejdk8 - -dependencies: - override: - - chmod +x kobaltw - -test: - override: - - ./kobaltw assemble test - post: - - cp -r kobaltBuild/test-output/* $CIRCLE_TEST_REPORTS/ \ No newline at end of file