Files
qqq/.circleci/config.yml
2022-06-08 15:58:57 -05:00

36 lines
1.2 KiB
YAML

version: 2.1
executors:
java17:
docker:
- image: 'cimg/openjdk:17.0'
orbs:
maven: circleci/maven@1.3.0
workflows:
main:
jobs:
##################################################################################
## Job (based on maven orb) to test the codebase. Should run for all branches. ##
##################################################################################
- maven/test:
name: run_tests
executor: java17
##############################################################################################
## Job (based on maven orb) to do a mvn deploy to publish jar to github qqq-maven-registry. ##
##############################################################################################
- maven/test:
name: deploy_to_github
executor: java17
command: 'deploy -DskipTests' ## tests were previously ran, so okay to skip them here,
settings_file: .circleci/mvn-settings.xml
context:
- Production
requires:
- run_tests
filters:
branches:
only: circleci-project-setup ## todo - change to main