diff --git a/.circleci/config.yml b/.circleci/config.yml index a8eea21..7fdfcb3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,14 +1,16 @@ -version: 2 +defaults: &defaults + working_directory: ~/repo + docker: + - image: circleci/openjdk:8-jdk + environment: + JVM_OPTS: -Xmx3200m + TERM: dumb + +version: 2.0 + jobs: - build: - docker: - - image: circleci/openjdk:8-jdk - - working_directory: ~/repo - - environment: - JVM_OPTS: -Xmx3200m - TERM: dumb + build_gradle: + <<: *defaults steps: - checkout @@ -34,4 +36,40 @@ jobs: path: build/reports/ destination: reports - store_test_results: - path: build/reports/ \ No newline at end of file + path: build/reports/ + + build_kobalt: + <<: *defaults + + 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/ + +workflows: + version: 2 + build_gradle_and_kobalt: + jobs: + - build_gradle + - build_kobalt \ No newline at end of file