Added Kobalt & Gradle workflows.
This commit is contained in:
parent
020db49930
commit
74469f881c
1 changed files with 49 additions and 11 deletions
|
@ -1,15 +1,17 @@
|
||||||
version: 2
|
defaults: &defaults
|
||||||
jobs:
|
working_directory: ~/repo
|
||||||
build:
|
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/openjdk:8-jdk
|
- image: circleci/openjdk:8-jdk
|
||||||
|
|
||||||
working_directory: ~/repo
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
JVM_OPTS: -Xmx3200m
|
JVM_OPTS: -Xmx3200m
|
||||||
TERM: dumb
|
TERM: dumb
|
||||||
|
|
||||||
|
version: 2.0
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_gradle:
|
||||||
|
<<: *defaults
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
|
@ -35,3 +37,39 @@ jobs:
|
||||||
destination: reports
|
destination: reports
|
||||||
- store_test_results:
|
- 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