mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Add .circleci/config.yml
This commit is contained in:
38
.circleci/config.yml
Normal file
38
.circleci/config.yml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
version: 2.1
|
||||||
|
|
||||||
|
executors:
|
||||||
|
java17:
|
||||||
|
docker:
|
||||||
|
- image: 'cimg/openjdk:17.0'
|
||||||
|
|
||||||
|
orbs:
|
||||||
|
maven: circleci/maven@1.3.0
|
||||||
|
|
||||||
|
# Define a job to be invoked later in a workflow.
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
executor: java17
|
||||||
|
steps:
|
||||||
|
# todo - ssh keys?
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- v1-dependencies-{{ checksum "pom.xml" }}
|
||||||
|
- run:
|
||||||
|
name: Build with tests
|
||||||
|
command: |
|
||||||
|
mvn clean install
|
||||||
|
- 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
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: target
|
||||||
|
paths:
|
||||||
|
- qqq-backend-core-*.jar
|
||||||
|
- save_cache:
|
||||||
|
paths:
|
||||||
|
- ~/.m2
|
||||||
|
key: v1-dependencies-{{ checksum "pom.xml" }}
|
Reference in New Issue
Block a user