Skip to content

Commit

Permalink
Merge pull request #1 from kintone/circleci-configuration
Browse files Browse the repository at this point in the history
Add CircleCI configuration
  • Loading branch information
aoking authored Apr 14, 2020
2 parents 8ad42af + 2593f74 commit 6326cae
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
version: 2
jobs:
test:
docker:
- image: circleci/openjdk:8-jdk
steps:
- checkout
- restore_cache:
keys:
- v1-deps-{{ checksum "build.gradle" }}
- v1-deps-
- run:
name: Check spotless
command: ./gradlew spotlessCheck
- run:
name: Run tests
command: ./gradlew clean test
- run:
name: Save test results
command: |
mkdir test-results
find . -type f -regex "./build/test-results/.*/.*xml" -exec cp {} test-results \;
when: always
- store_test_results:
path: ./test-results
- save_cache:
paths:
- ~/.gradle
key: v1-deps-{{ checksum "build.gradle" }}

workflows:
version: 2
push-tests:
jobs:
- test

0 comments on commit 6326cae

Please sign in to comment.