-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
65 lines (59 loc) · 1.99 KB
/
.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# based on the template from
# https://gitlab.com/gitlab-org/gitlab-foss/-/blob/master/lib/gitlab/ci/templates/Maven.gitlab-ci.yml
image: maven:3.6-jdk-11
cache:
paths:
- .m2/repository
# For merge requests do not `deploy` but only run `verify`.
.verify: &verify
stage: test
script:
- 'mvn $MAVEN_CLI_OPTS generate-sources'
- 'mvn $MAVEN_CLI_OPTS verify'
- 'mvn -Doxygen.version=23 $MAVEN_CLI_OPTS clean verify'
- 'mvn -Doxygen.version=24.0 $MAVEN_CLI_OPTS clean verify'
- 'mvn -Doxygen.version=24.1 $MAVEN_CLI_OPTS clean verify'
- 'mvn -Doxygen.version=25 $MAVEN_CLI_OPTS clean verify'
except:
- master
# Verify merge requests
verify:jdk11:
<<: *verify
# deploy using .gitlab-ci_settings.xml as maven settings
# see https://gitlab.com/help/user/packages/maven_repository/index.md#creating-maven-packages-with-gitlab-cicd-using-maven
deploy:jdk11:
script:
- 'mvn generate-sources -s .gitlab-ci_settings.xml'
- 'mvn verify -s .gitlab-ci_settings.xml'
- 'echo "location of local maven repository:"'
- 'mvn help:evaluate -Dexpression=settings.localRepository -q -DforceStdout'
artifacts:
paths:
- grammar/target
- xpath-extension/target
- saxon/target
only:
- master
- tags
pages:
stage: deploy
script:
- mkdir -p public
- ls -la
- mvn -Doxygen.version=23 $MAVEN_CLI_OPTS clean verify
- cp -v oxygen/target/*-plugin.jar public/
- mvn -Doxygen.version=24.0 $MAVEN_CLI_OPTS clean verify
- cp -v oxygen/target/*-plugin.jar public/
- mvn -Doxygen.version=24.1 $MAVEN_CLI_OPTS clean verify
- cp -v oxygen/target/*-plugin.jar public/
- mvn -Doxygen.version=25 $MAVEN_CLI_OPTS clean verify
- cp -v oxygen/target/*-plugin.jar public/
- cp -v oxygen/target/generated-resources/xml/xslt/descriptor.xml public/
- ls -la public
artifacts:
paths:
- public
only:
# https://gitlab.com/gitlab-org/gitlab-foss/-/issues/27818
variables:
- $CI_COMMIT_TAG =~ /^v\d+.\d+.\d+$/