mobibot/.circleci/config.yml
2017-10-29 22:11:30 -07:00

42 lines
No EOL
956 B
YAML

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