.gitlab-ci.yml 2.46 KB
Newer Older
1
2
3
4
5
6
7
8
workflow:
  rules:
    - if: '$CI_COMMIT_REF_NAME == "master" && $CI_PROJECT_NAMESPACE != "openldap"'
      when: never
    - if: '$CI_COMMIT_REF_NAME == "OPENLDAP_REL_ENG_2_5" && $CI_PROJECT_NAMESPACE != "openldap"'
      when: never
    - when: always

Ondřej Kuzník's avatar
Ondřej Kuzník committed
9
10
11
stages:
  - build

12
13
14
15
build-no-threads-no-slapd:
  stage: build
  script:
    - apt update
16
    - DEBIAN_FRONTEND=noninteractive apt install -y build-essential autoconf pkg-config groff-base libsasl2-dev libssl-dev
17
18
19
20
21
    - autoreconf
    - ./configure --without-threads --disable-slapd
    - make depend
    - make

22
build-openssl-heimdal-lloadd:
Ondřej Kuzník's avatar
Ondřej Kuzník committed
23
24
25
  stage: build
  script:
    - apt update
26
    - DEBIAN_FRONTEND=noninteractive apt install -y build-essential python3 gdb procps pkg-config automake libsasl2-dev heimdal-multidev libssl-dev libltdl-dev groff-base unixodbc-dev libwiredtiger-dev libperl-dev heimdal-kdc libsasl2-modules-gssapi-heimdal sasl2-bin libevent-dev libargon2-dev libsystemd-dev
27
    - autoreconf
28
29
    - mkdir obj
    - cd obj
30
    - ../configure --enable-backends=mod --enable-overlays=mod --enable-modules --enable-dynamic --disable-ndb --enable-balancer=mod --enable-argon2 --with-systemd
Ondřej Kuzník's avatar
Ondřej Kuzník committed
31
32
    - make depend
    - make
Ondřej Kuzník's avatar
Ondřej Kuzník committed
33
    - export DEBUGINFOD_URLS="${DEBUGINFOD_URLS-https://debuginfod.debian.net}"
Ondřej Kuzník's avatar
Ondřej Kuzník committed
34
    - ulimit -n 4096 # back-monitor takes a while scanning a long connections array
Ondřej Kuzník's avatar
Ondřej Kuzník committed
35
    - SLAPD_COMMON_WRAPPER=gdb make test
Ondřej Kuzník's avatar
Ondřej Kuzník committed
36
37
38
39
40
  artifacts:
    name: testdir
    when: on_failure
    expire_in: '1 week'
    paths:
41
42
      - obj/tests/testrun/
      - obj/servers/
43

44
build-gnutls-mit-standalone-lloadd:
45
46
47
  stage: build
  script:
    - apt update
48
    - DEBIAN_FRONTEND=noninteractive apt install -y build-essential python3 gdb procps pkg-config automake libsasl2-dev libltdl-dev groff-base unixodbc-dev libwiredtiger-dev libperl-dev krb5-user krb5-kdc krb5-admin-server libsasl2-modules-gssapi-mit sasl2-bin libgnutls28-dev libevent-dev libargon2-dev libsystemd-dev
49
    - autoreconf
50
51
    - mkdir obj
    - cd obj
52
    - ../configure --enable-backends=mod --enable-overlays=mod --disable-autoca --enable-modules --enable-dynamic --disable-ndb --enable-balancer=yes --enable-argon2 --with-systemd
53
54
    - make depend
    - make
Ondřej Kuzník's avatar
Ondřej Kuzník committed
55
    - export DEBUGINFOD_URLS="${DEBUGINFOD_URLS-https://debuginfod.debian.net}"
56
    - ulimit -n 4096 # back-monitor takes a while scanning a long connections array
Ondřej Kuzník's avatar
Ondřej Kuzník committed
57
    - SLAPD_COMMON_WRAPPER=gdb make test
58
59
60
61
62
  artifacts:
    name: testdir
    when: on_failure
    expire_in: '1 week'
    paths:
63
64
      - obj/tests/testrun/
      - obj/servers/