CircleCI Commit

This commit is contained in:
Amit Kumar Nandi 2024-02-02 00:32:32 +05:30
parent 9174948645
commit 9530616656

40
.circleci/config.yml Normal file
View 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