Now using Gradle for CI.

This commit is contained in:
Erik C. Thauvin 2018-06-20 00:07:11 -07:00
parent 878f8568cf
commit b785c7d0b9
2 changed files with 28 additions and 30 deletions

View file

@ -1,37 +1,41 @@
version: 2 defaults: &defaults
working_directory: ~/repo
environment:
JVM_OPTS: -Xmx3200m
TERM: dumb
version: 2.0
jobs: jobs:
build:
build_gradle:
<<: *defaults
docker: docker:
- image: circleci/openjdk:8-jdk - image: circleci/openjdk:8-jdk
working_directory: ~/repo
environment:
JVM_OPTS: -Xmx3200m
TERM: dumb
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
keys: 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 # fallback to using the latest cache if no exact match is found
- kobalt-dependencies- - gradle-dependencies-
- run: - run:
name: Check Versions name: Gradle Dependencies
command: ./kobaltw checkVersions command: ./gradlew dependencies
- save_cache: - save_cache:
paths: ~/.kobalt paths: ~/.m2
key: kobalt-dependencies-{{ checksum "kobalt/src/Build.kt" }} key: gradle-dependencies-{{ checksum "build.gradle.kts" }}
- run: - run:
name: Assemble & Test name: Run All Checks
command: ./kobaltw assemble test command: ./gradlew check
- store_artifacts: - store_artifacts:
path: kobaltBuild/test-output/ path: build/reports/
destination: test-output destination: reports
- store_test_results: - store_test_results:
path: kobaltBuild/test-output/ path: build/reports/

View file

@ -3,17 +3,11 @@ language: java
jdk: jdk:
- oraclejdk8 - oraclejdk8
before_install: before_cache:
- chmod +x kobaltw - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
install: true
cache: cache:
directories: directories:
- $HOME/.m2 - $HOME/.gradle/caches/
- $HOME/.kobalt - $HOME/.gradle/wrapper/
before_cache:
- rm -rf .kobalt/*
script: ./kobaltw clean assemble test