-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
75 lines (69 loc) · 2.33 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
66
67
68
69
70
71
72
73
74
75
cache:
paths:
- .m2/repository
variables:
MAVEN_OPTS: -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true
MAVEN_CLI_OPTS: --batch-mode --errors -DinstallAtEnd=true -DdeployAtEnd=true
build-centos8:
image: valtri/build-centos:8-jni
before_script: &deps-dnf
- dnf install -y file krb5-devel rpm-build
script: &script-rpm
- >
mvn $MAVEN_CLI_OPTS verify -s $CI_SETTINGS;
(cd target/jni; cpack -G RPM);
artifacts: &artifacts-rpm
paths:
- pom.xml
- target/*.jar
- target/maven-archiver/*.properties
- target/jni/kerberos-connector*.*.rpm
- target/jni/kerberos-connector*.tar.*
- target/jni/libkerberos-connector.so
build-debian9:
image: valtri/build-debian:stretch-jni
before_script: &deps-apt
- apt-get update -qq && apt-get install -y --no-install-recommends file libkrb5-dev
script: &script-deb
- >
mvn $MAVEN_CLI_OPTS verify -s $CI_SETTINGS;
(cd target/jni; cpack -G DEB);
artifacts: &artifacts-deb
paths:
- pom.xml
- target/*.jar
- target/maven-archiver/*.properties
- target/jni/kerberos-connector*.*.deb
- target/jni/kerberos-connector*.tar.*
- target/jni/libkerberos-connector.so
build-debian10:
image: valtri/build-debian:buster-jni
before_script: *deps-apt
variables:
# workaround for https://issues.apache.org/jira/browse/MJAVADOC-595
JAVA_HOME: /usr/lib/jvm/default-java
script:
- >
if [ "$CI_COMMIT_BRANCH" = "$CI_DEFAULT_BRANCH" -o -n "$CI_COMMIT_TAG" ]; then
mvn $MAVEN_CLI_OPTS deploy -s $CI_SETTINGS;
else
mvn $MAVEN_CLI_OPTS verify -s $CI_SETTINGS;
fi;
(cd target/jni; cpack -G DEB);
artifacts: *artifacts-deb
build-ubuntu18:
image: valtri/build-ubuntu:bionic-jni
before_script: *deps-apt
variables:
# workaround for https://issues.apache.org/jira/browse/MJAVADOC-595
JAVA_HOME: /usr/lib/jvm/default-java
script: *script-deb
artifacts: *artifacts-deb
build-ubuntu20:
image: valtri/build-ubuntu:focal-jni
before_script: *deps-apt
variables:
# workaround for https://issues.apache.org/jira/browse/MJAVADOC-595
JAVA_HOME: /usr/lib/jvm/default-java
script: *script-deb
artifacts: *artifacts-deb