Added CircleCI 2.0 configuration.
This commit is contained in:
parent
db4e5f329e
commit
4e99013a7e
3 changed files with 42 additions and 11 deletions
42
.circleci/config.yml
Normal file
42
.circleci/config.yml
Normal file
|
@ -0,0 +1,42 @@
|
|||
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
|
||||
|
||||
- run:
|
||||
name: Save Test Results
|
||||
command: |
|
||||
mkdir -p ~/test
|
||||
cp -a build/reports/tests/test/. ~/test
|
||||
when: always
|
||||
- store_test_results:
|
||||
path: ~/test
|
||||
- store_artifacts:
|
||||
path: ~/test
|
Loading…
Add table
Add a link
Reference in a new issue