Skip to content

Commit 3163dc3

Browse files
author
Philipp Potisk
committed
Added GitLab CI/CD config
1 parent 90cd5ef commit 3163dc3

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.gitlab-ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
image: registry.gitlab.com/danubetech/devops/docker-maven-danubetech:latest
2+
3+
stages:
4+
- build
5+
- test
6+
7+
variables:
8+
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
9+
10+
cache:
11+
paths:
12+
- .m2/repository/
13+
- target/
14+
15+
build:
16+
stage: build
17+
script:
18+
- mvn $MAVEN_CLI_OPTS compile
19+
20+
test:
21+
stage: test
22+
script:
23+
- mvn $MAVEN_CLI_OPTS test

0 commit comments

Comments
 (0)