Added workflow to build both in Gradle and Kobalt.
This commit is contained in:
parent
2b84150c00
commit
fa54c5beff
1 changed files with 48 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
checkout_code:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/openjdk:8-jdk
|
- image: circleci/openjdk:8-jdk
|
||||||
|
|
||||||
|
@ -12,6 +12,11 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
|
build_gradle:
|
||||||
|
working_directory: ~/repo
|
||||||
|
|
||||||
|
steps:
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- gradle-dependencies-{{ checksum "build.gradle" }}
|
- gradle-dependencies-{{ checksum "build.gradle" }}
|
||||||
|
@ -34,4 +39,45 @@ jobs:
|
||||||
path: build/reports/
|
path: build/reports/
|
||||||
destination: reports
|
destination: reports
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: build/reports/
|
path: build/reports/
|
||||||
|
|
||||||
|
build_kobalt:
|
||||||
|
working_directory: ~/repo
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- 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:
|
||||||
|
- checkout_code
|
||||||
|
- build_gradle
|
||||||
|
requires:
|
||||||
|
- checkout_code
|
||||||
|
|
||||||
|
- build_kobalt
|
||||||
|
requires:
|
||||||
|
- checkout_code
|
Loading…
Add table
Add a link
Reference in a new issue