mirror of
https://gitlab.kit.edu/kit/scc/sys/mail/exim-encrypt-dlfunc.git
synced 2025-12-06 10:13:56 +01:00
Merge branch 'ci2'
This commit is contained in:
66
.gitlab-ci.yml
Normal file
66
.gitlab-ci.yml
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- test
|
||||||
|
|
||||||
|
.build:
|
||||||
|
stage: build
|
||||||
|
before_script:
|
||||||
|
- apt-get update && apt-get install -y build-essential exim4-dev libsodium-dev
|
||||||
|
script:
|
||||||
|
- cd src
|
||||||
|
- make all
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- src/genkey
|
||||||
|
- src/libexim-encrypt-dlfunc.so
|
||||||
|
|
||||||
|
build:buster:
|
||||||
|
extends:
|
||||||
|
- .build
|
||||||
|
image: debian:buster
|
||||||
|
|
||||||
|
build:bullseye:
|
||||||
|
image: debian:bullseye
|
||||||
|
extends:
|
||||||
|
- .build
|
||||||
|
|
||||||
|
build:bionic:
|
||||||
|
image: ubuntu:bionic
|
||||||
|
extends:
|
||||||
|
- .build
|
||||||
|
|
||||||
|
build:focal:
|
||||||
|
image: ubuntu:focal
|
||||||
|
extends:
|
||||||
|
- .build
|
||||||
|
.test:
|
||||||
|
stage: test
|
||||||
|
before_script:
|
||||||
|
- apt-get update && apt-get install -y exim4-daemon-heavy openssl libsodium23
|
||||||
|
script:
|
||||||
|
- cd src
|
||||||
|
- ./simple_exim_test.sh
|
||||||
|
|
||||||
|
test:buster:
|
||||||
|
extends:
|
||||||
|
- .test
|
||||||
|
needs: ["build:buster"]
|
||||||
|
image: debian:buster
|
||||||
|
|
||||||
|
test:bullseye:
|
||||||
|
extends:
|
||||||
|
- .test
|
||||||
|
needs: ["build:bullseye"]
|
||||||
|
image: debian:bullseye
|
||||||
|
|
||||||
|
test:bionic:
|
||||||
|
extends:
|
||||||
|
- .test
|
||||||
|
needs: ["build:bionic"]
|
||||||
|
image: ubuntu:bionic
|
||||||
|
|
||||||
|
test:focal:
|
||||||
|
extends:
|
||||||
|
- .test
|
||||||
|
needs: ["build:focal"]
|
||||||
|
image: ubuntu:focal
|
||||||
@ -1,11 +1,11 @@
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-I/usr/include/exim4 -g -O2 -ffile-prefix-map=/=. -fstack-protector-strong -Wformat -Werror=format-security
|
CFLAGS=-I/usr/include/exim4 -g
|
||||||
LDFLAGS=-Wl,-z,relro -lsodium
|
LDFLAGS=-lsodium
|
||||||
LDFLAGS_LIB=-fpic -shared -export-dynamic
|
LDFLAGS_LIB=-fpic -shared
|
||||||
|
|
||||||
.PHONY: clean all
|
.PHONY: clean all
|
||||||
|
|
||||||
.DEFAULT_GOAL := libexim-encrypt-dlfunc.so
|
.DEFAULT_GOAL := all
|
||||||
|
|
||||||
libexim-encrypt-dlfunc.so: libexim-encrypt-dlfunc.c
|
libexim-encrypt-dlfunc.so: libexim-encrypt-dlfunc.c
|
||||||
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDFLAGS_LIB)
|
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDFLAGS_LIB)
|
||||||
|
|||||||
Reference in New Issue
Block a user