Now using Gradle for CI.
This commit is contained in:
parent
878f8568cf
commit
b785c7d0b9
2 changed files with 28 additions and 30 deletions
|
@ -1,37 +1,41 @@
|
|||
version: 2
|
||||
defaults: &defaults
|
||||
working_directory: ~/repo
|
||||
environment:
|
||||
JVM_OPTS: -Xmx3200m
|
||||
TERM: dumb
|
||||
|
||||
version: 2.0
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
build_gradle:
|
||||
<<: *defaults
|
||||
|
||||
docker:
|
||||
- image: circleci/openjdk:8-jdk
|
||||
|
||||
working_directory: ~/repo
|
||||
|
||||
environment:
|
||||
JVM_OPTS: -Xmx3200m
|
||||
TERM: dumb
|
||||
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- kobalt-dependencies-{{ checksum "kobalt/src/Build.kt" }}
|
||||
- gradle-dependencies-{{ checksum "build.gradle.kts" }}
|
||||
# fallback to using the latest cache if no exact match is found
|
||||
- kobalt-dependencies-
|
||||
- gradle-dependencies-
|
||||
|
||||
- run:
|
||||
name: Check Versions
|
||||
command: ./kobaltw checkVersions
|
||||
name: Gradle Dependencies
|
||||
command: ./gradlew dependencies
|
||||
|
||||
- save_cache:
|
||||
paths: ~/.kobalt
|
||||
key: kobalt-dependencies-{{ checksum "kobalt/src/Build.kt" }}
|
||||
paths: ~/.m2
|
||||
key: gradle-dependencies-{{ checksum "build.gradle.kts" }}
|
||||
|
||||
- run:
|
||||
name: Assemble & Test
|
||||
command: ./kobaltw assemble test
|
||||
name: Run All Checks
|
||||
command: ./gradlew check
|
||||
|
||||
- store_artifacts:
|
||||
path: kobaltBuild/test-output/
|
||||
destination: test-output
|
||||
path: build/reports/
|
||||
destination: reports
|
||||
- store_test_results:
|
||||
path: kobaltBuild/test-output/
|
||||
path: build/reports/
|
16
.travis.yml
16
.travis.yml
|
@ -3,17 +3,11 @@ language: java
|
|||
jdk:
|
||||
- oraclejdk8
|
||||
|
||||
before_install:
|
||||
- chmod +x kobaltw
|
||||
|
||||
install: true
|
||||
before_cache:
|
||||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
||||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.m2
|
||||
- $HOME/.kobalt
|
||||
|
||||
before_cache:
|
||||
- rm -rf .kobalt/*
|
||||
|
||||
script: ./kobaltw clean assemble test
|
||||
- $HOME/.gradle/caches/
|
||||
- $HOME/.gradle/wrapper/
|
Loading…
Add table
Add a link
Reference in a new issue