Skip to content
Snippets Groups Projects
Commit d6a7e055 authored by Ján Macháček's avatar Ján Macháček Committed by Martin Slovík
Browse files

DOC: adding .gitlab-ci.yml

parent aeb69a55
No related branches found
No related tags found
No related merge requests found
image: 'maven:3.8.5-openjdk-17-slim'
cache:
paths:
- .m2/repository
variables:
MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version"
stages:
- build
- test
build:
tags:
- shared-fi
stage: build
script:
- echo "We are building your project, $GITLAB_USER_LOGIN"
- ./mvnw clean install -Dmaven.test.skip=true $MAVEN_CLI_OPTS
artifacts:
expire_in: 10 min
paths:
- "*/target/*.jar"
test:
tags:
- shared-fi
stage: test
script:
- echo "We are testing your project build, $GITLAB_USER_LOGIN"
- ./mvnw test $MAVEN_CLI_OPTS
artifacts:
expire_in: 10 min
paths:
- "*/target/*.jar"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment