Added CircleCI configuration.
This commit is contained in:
parent
6e27f164e9
commit
985dbf22c8
1 changed files with 63 additions and 0 deletions
63
.circleci/config.yml
Normal file
63
.circleci/config.yml
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
defaults: &defaults
|
||||||
|
working_directory: ~/repo
|
||||||
|
docker:
|
||||||
|
- image: circleci/openjdk:8-jdk
|
||||||
|
environment:
|
||||||
|
JVM_OPTS: -Xmx3200m
|
||||||
|
TERM: dumb
|
||||||
|
|
||||||
|
version: 2.0
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_gradle:
|
||||||
|
<<: *defaults
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- gradle-dependencies-{{ checksum "build.gradle" }}
|
||||||
|
# fallback to using the latest cache if no exact match is found
|
||||||
|
- gradle-dependencies-
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: Gradle Dependencies
|
||||||
|
command: ./gradlew dependencies
|
||||||
|
|
||||||
|
- save_cache:
|
||||||
|
paths: ~/.m2
|
||||||
|
key: gradle-dependencies-{{ checksum "build.gradle" }}
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: Run All Checks
|
||||||
|
command: ./gradlew check
|
||||||
|
|
||||||
|
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
|
||||||
|
command: ./kobaltw assemble
|
||||||
|
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
build_gradle_and_kobalt:
|
||||||
|
jobs:
|
||||||
|
- build_gradle
|
||||||
|
- build_kobalt
|
Loading…
Add table
Add a link
Reference in a new issue