forked from bitcoinj/bitcoinj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
55 lines (50 loc) · 2.02 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
reference:
image: debian:bookworm-slim
before_script:
- apt-get update
- apt-get -y install ca-certificates buildah
# switch to iptables legacy, as GitLab CI doesn't support nftables
- apt-get -y install --no-install-recommends iptables
- update-alternatives --set iptables /usr/sbin/iptables-legacy
script:
- buildah build --file build.Containerfile --output build .
after_script:
- sha256sum build/core/* build/wallettool/bin/* build/wallettool/lib/*
artifacts:
name: bitcoinj-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
paths:
- build/**
bullseye-jdk11:
image: debian:bullseye-slim
before_script:
- apt-get update
- apt-get -y install openjdk-11-jdk-headless gradle
script:
- gradle build :bitcoinj-core:publishToMavenLocal :bitcoinj-wallettool:installDist --init-script build-scan-agree.gradle --scan --stacktrace
after_script:
- gradle --version
- sha256sum core/build/libs/*.jar wallettool/build/install/wallet-tool/bin/* wallettool/build/install/wallet-tool/lib/*.jar
bookworm-jdk17:
image: debian:bookworm-slim
before_script:
- apt-get update
- apt-get -y install openjdk-17-jdk-headless gradle
script:
- gradle build :bitcoinj-core:publishToMavenLocal :bitcoinj-wallettool:installDist --init-script build-scan-agree.gradle --scan --stacktrace
after_script:
- gradle --version
- sha256sum core/build/libs/*.jar wallettool/build/install/wallet-tool/bin/* wallettool/build/install/wallet-tool/lib/*.jar
trixie-jdk21:
image: debian:trixie-slim
before_script:
- apt-get update
- apt-get -y install openjdk-21-jdk-headless gradle
script:
- gradle build :bitcoinj-core:publishToMavenLocal :bitcoinj-wallettool:installDist --init-script build-scan-agree.gradle --scan --stacktrace
after_script:
- gradle --version
- sha256sum core/build/libs/*.jar wallettool/build/install/wallet-tool/bin/* wallettool/build/install/wallet-tool/lib/*.jar
sast:
stage: test
include:
- template: Security/SAST.gitlab-ci.yml