.gitlab-ci.yml 2.21 KB
Newer Older
1
2
image: centos:7

3
4
5
6
variables:
  BUILD_IMAGES_PROJECT: gnutls/build-images
  FEDORA_BUILD: buildenv-f25

7
8
9
before_script:
 - yum install -y git make autoconf libtool automake gettext-devel glibc-devel gcc valgrind libasan-static libgcc.i686 glibc-devel.i686

Niels Möller's avatar
Niels Möller committed
10
# See http://doc.gitlab.com/ce/ci/yaml/ for documentation.
11
build/x86-64:
Niels Möller's avatar
Niels Möller committed
12
  script:
13
  - yum install -y gmp-devel
Niels Möller's avatar
Niels Möller committed
14
15
16
17
  - ./.bootstrap &&
    ./configure --disable-documentation && make -j4 &&
    make check -j4
  tags:
18
  - shared
Niels Möller's avatar
Niels Möller committed
19
20
  except:
  - tags
21
build/x86:
Niels Möller's avatar
Niels Möller committed
22
  script:
23
  - yum install -y gmp-devel.i686
Niels Möller's avatar
Niels Möller committed
24
  - ./.bootstrap &&
25
    PKG_CONFIG_PATH="/usr/lib/pkgconfig/" CFLAGS="-O2 -g -m32" LDFLAGS="-m32" ./configure --build=i686-redhat-linux --disable-documentation && make -j4 &&
Niels Möller's avatar
Niels Möller committed
26
27
    make check -j4
  tags:
28
  - shared
Niels Möller's avatar
Niels Möller committed
29
30
  except:
  - tags
31
32
33
34
35
36
37
38
39
40
41
42
43
build/aarch64:
  before_script:
  - /bin/true
  script:
  - ./.bootstrap &&
    ./configure --enable-fat --disable-documentation && make -j4 &&
    make check -j4
  tags:
  - aarch64
  only:
  - branches@gnutls/nettle
  except:
  - tags
44
45
46
47
48
49
Build and Check with mini-gmp:
  script:
  - ./.bootstrap &&
    ./configure --disable-documentation --enable-mini-gmp && make -j4 &&
    make check -j4
  tags:
50
  - shared
51
52
  except:
  - tags
53
Build and Check with ubsan:
54
  image: fedora:25
55
  script:
56
  - yum install -y gmp-devel libubsan-static libubsan
57
58
59
60
  - ./.bootstrap && 
    CXXFLAGS="-fsanitize=undefined -fno-sanitize-recover -g -O2" CFLAGS="-fsanitize=undefined -fno-sanitize-recover -g -O2" ./configure 
    --disable-documentation && make -j4 && make check -j4
  tags:
61
  - shared
62
63
64
  except:
  - tags
Build and Check with asan:
65
  image: fedora:25
66
  script:
67
  - yum install -y gmp-devel
68
69
70
  - ./.bootstrap && 
  - CXXFLAGS="-fsanitize=address -g -O2" CFLAGS="-fsanitize=address -g -O2" ./configure --disable-documentation &&
    make -j4 && make check -j4
71
72
  tags:
  - shared
73
74
  except:
  - tags
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Build with static-analyzers:
  image: fedora:25
  script:
  - yum install -y gmp-devel clang compiler-rt cppcheck clang-analyzer
  - ./.bootstrap
  - scan-build ./configure --disable-documentation
  - scan-build --status-bugs -o scan-build-lib make -j$(nproc)
  tags:
  - shared
  except:
  - tags
  artifacts:
    expire_in: 1 week
    when: on_failure
    paths:
      - scan-build-lib/*