mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:25:50 +00:00
CircleCI Commit
This commit is contained in:
parent
332abbcb8a
commit
277c49f91f
1 changed files with 45 additions and 0 deletions
45
.circleci/config.yml
Normal file
45
.circleci/config.yml
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
# This config was automatically generated from your source code
|
||||||
|
# Stacks detected: cicd:github-actions:.github/workflows,deps:java:.,tool:gradle:
|
||||||
|
version: 2.1
|
||||||
|
jobs:
|
||||||
|
test-java:
|
||||||
|
docker:
|
||||||
|
- image: cimg/openjdk:17.0
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: Calculate cache key
|
||||||
|
command: |-
|
||||||
|
find . -name 'pom.xml' -o -name 'gradlew*' -o -name '*.gradle*' | \
|
||||||
|
sort | xargs cat > /tmp/CIRCLECI_CACHE_KEY
|
||||||
|
- restore_cache:
|
||||||
|
key: cache-{{ checksum "/tmp/CIRCLECI_CACHE_KEY" }}
|
||||||
|
- run:
|
||||||
|
command: ./gradlew check
|
||||||
|
- store_test_results:
|
||||||
|
path: build/test-results
|
||||||
|
- save_cache:
|
||||||
|
key: cache-{{ checksum "/tmp/CIRCLECI_CACHE_KEY" }}
|
||||||
|
paths:
|
||||||
|
- ~/.gradle/caches
|
||||||
|
- store_artifacts:
|
||||||
|
path: build/reports
|
||||||
|
deploy:
|
||||||
|
# This is an example deploy job, not actually used by the workflow
|
||||||
|
docker:
|
||||||
|
- image: cimg/base:stable
|
||||||
|
steps:
|
||||||
|
# Replace this with steps to deploy to users
|
||||||
|
- run:
|
||||||
|
name: deploy
|
||||||
|
command: '#e.g. ./deploy.sh'
|
||||||
|
- run:
|
||||||
|
name: found github actions config
|
||||||
|
command: ':'
|
||||||
|
workflows:
|
||||||
|
build-and-test:
|
||||||
|
jobs:
|
||||||
|
- test-java
|
||||||
|
# - deploy:
|
||||||
|
# requires:
|
||||||
|
# - test-java
|
Loading…
Reference in a new issue