summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 6d81f81b25209ed934455e948371a63deba6dac5 (plain)
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
image: centos:7

before_script:
  - yum install -y git coreutils which autoconf libtool gettext-devel automake autogen nettle-devel p11-kit-devel autogen-libopts-devel trousers-devel guile-devel libtasn1-devel libidn-devel gawk gperf git2cl libtasn1-tools unbound-devel bison help2man xz net-tools
  - yum install -y libasan libasan-static nodejs softhsm datefudge lcov openssl-devel openssl libcmocka-devel xz valgrind

Centos6/build:
  image: centos:6
  before_script:
  - yum install -y epel-release
  - yum install -y git coreutils which autoconf libtool datefudge gettext-devel automake libgcrypt-devel p11-kit-devel guile-devel libtasn1-devel gawk libtasn1-tools bison help2man xz net-tools
  script:
  - sed -i 's/AM_PROG_AR//g' configure.ac lib/configure.ac libextra/configure.ac
  - git submodule update --init && make autoreconf && mkdir -p build && cd build && ../configure
    --disable-non-suiteb-curves --with-included-libtasn1 --enable-seccomp-tests --disable-guile --disable-valgrind-tests --with-libgcrypt --disable-doc && make && make check
  - cat tests/test-suite.log
  tags:
  - shared
  except:
  - tags
  artifacts:
    expire_in: 1 week
    when: on_failure
    paths:
      - build/tests/*.log
      - build/tests/*/*.log

Centos7/build:
  script:
  - git submodule update --init && make autoreconf && mkdir -p build && cd build && ../configure
    --disable-non-suiteb-curves --with-included-libtasn1 --enable-seccomp-tests --disable-guile --disable-valgrind-tests --disable-doc && make && make check
  - cat tests/test-suite.log
  tags:
  - shared
  except:
  - tags
  artifacts:
    expire_in: 1 week
    when: on_failure
    paths:
      - build/tests/*.log
      - build/tests/*/*.log

Centos7/valgrind:
  script:
  - git submodule update --init && make autoreconf && rm -f tests/suite/mini-eagain2.c && ./configure
    --disable-non-suiteb-curves --with-included-libtasn1 --disable-doc --disable-guile && make && make check
  - cat tests/test-suite.log
  tags:
  - shared
  except:
  - tags
  artifacts:
    expire_in: 1 week
    when: on_failure
    paths:
      - tests/*.log
      - tests/*/*.log

Centos7/asan:
  script:
  - git submodule update --init && make autoreconf && rm -f tests/suite/mini-eagain2.c &&CFLAGS="-fsanitize=address -g
    -O2" LDFLAGS="-static-libasan" ./configure --disable-doc --with-included-libtasn1 --disable-valgrind-tests --disable-non-suiteb-curves --disable-guile
    && make && make check
  - cat tests/test-suite.log
  tags:
  - shared
  except:
  - tags
  artifacts:
    expire_in: 1 week
    when: on_failure
    paths:
      - tests/*.log
      - tests/*/*.log