Files
qqq/.circleci/config.yml
2022-06-08 14:05:23 -05:00

48 lines
1.1 KiB
YAML

version: 2.1
executors:
java17:
docker:
- image: 'cimg/openjdk:17.0'
orbs:
maven: circleci/maven@1.3.0
jobs:
maven_package:
executor: java17
steps:
# todo - ssh keys?
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "pom.xml" }}
- run:
name: Build with tests
command: |
mvn clean package
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/test-results/junit/ \;
when: always
- store_test_results:
path: ~/test-results
- persist_to_workspace:
root: target
paths:
- qqq-backend-core-*.jar
- store_artifacts:
path: target/qqq-backend-core-*.jar
destination: qqq-backend-core.jar
- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "pom.xml" }}
workflows:
main:
jobs:
- maven_package