CircleCI Commit
This commit is contained in:
parent
9174948645
commit
9530616656
1 changed files with 40 additions and 0 deletions
40
.circleci/config.yml
Normal file
40
.circleci/config.yml
Normal file
|
@ -0,0 +1,40 @@
|
|||
# This config was automatically generated from your source code
|
||||
# Stacks detected: deps:java:.
|
||||
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: mvn verify
|
||||
- store_test_results:
|
||||
path: target/surefire-reports
|
||||
- save_cache:
|
||||
key: cache-{{ checksum "/tmp/CIRCLECI_CACHE_KEY" }}
|
||||
paths:
|
||||
- ~/.m2/repository
|
||||
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'
|
||||
workflows:
|
||||
build-and-test:
|
||||
jobs:
|
||||
- test-java
|
||||
# - deploy:
|
||||
# requires:
|
||||
# - test-java
|
Loading…
Reference in a new issue