Added CircleCI 2.0 configuration.
This commit is contained in:
parent
f511db7b98
commit
a570848319
2 changed files with 37 additions and 11 deletions
37
.circleci/config.yml
Normal file
37
.circleci/config.yml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
version: 2
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
docker:
|
||||||
|
- image: circleci/openjdk:8-jdk
|
||||||
|
|
||||||
|
working_directory: ~/repo
|
||||||
|
|
||||||
|
environment:
|
||||||
|
JVM_OPTS: -Xmx3200m
|
||||||
|
TERM: dumb
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
- store_artifacts:
|
||||||
|
path: build/reports/
|
||||||
|
destination: reports
|
||||||
|
- store_test_results:
|
||||||
|
path: build/reports/
|
11
circle.yml
11
circle.yml
|
@ -1,11 +0,0 @@
|
||||||
machine:
|
|
||||||
java:
|
|
||||||
version: oraclejdk8
|
|
||||||
|
|
||||||
dependencies:
|
|
||||||
override:
|
|
||||||
- chmod +x gradlew
|
|
||||||
|
|
||||||
test:
|
|
||||||
post:
|
|
||||||
- cp -r build/reports/* $CIRCLE_TEST_REPORTS/
|
|
Loading…
Add table
Add a link
Reference in a new issue