Skip to content

Commit b4ad81c

Browse files
authored
fix gitlab CI
1 parent c008806 commit b4ad81c

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.gitlab-ci.yml

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
image: java:8
2-
3-
before_script:
4-
- apt-get update -y
5-
- apt-get install -y ant
1+
image: maven:latest
62

3+
variables:
4+
MAVEN_CLI_OPTS: "--batch-mode"
5+
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
76

7+
cache:
8+
paths:
9+
- .m2/repository/
10+
- target/
811

912
build:
13+
stage: build
1014
script:
11-
- ./test.sh
12-
- ant jar
15+
- mvn $MAVEN_CLI_OPTS compile
1316

1417
test:
18+
stage: test
1519
script:
16-
- ant test
20+
- ./test.sh
21+
- mvn $MAVEN_CLI_OPTS test

0 commit comments

Comments
 (0)