-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
old.gitlab-ci.yml
45 lines (39 loc) · 944 Bytes
/
old.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
variables:
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
GIT_SUBMODULE_STRATEGY: recursive
cache:
paths:
- .m2/repository
image: maven:3-jdk-8
validate:
stage: build
script:
- 'mvn $MAVEN_CLI_OPTS test-compile'
verify:
stage: test
script:
- 'mvn $MAVEN_CLI_OPTS verify site site:stage'
except:
- master
deploy:
stage: test
script:
- 'mvn $MAVEN_CLI_OPTS deploy site site:stage'
only:
- master
artifacts:
paths:
- target/staging
pages:
image: busybox:latest
stage: deploy
script:
- mv target/staging public
dependencies:
- deploy
artifacts:
paths:
- public
only:
- master