Added Kobalt & Gradle workflows.
This commit is contained in:
parent
020db49930
commit
74469f881c
1 changed files with 49 additions and 11 deletions
|
@ -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/
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue