.gitlab-ci.yml 2.1 KB
Newer Older
1
2
3
4
5
image: centos:7

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
6
# See http://doc.gitlab.com/ce/ci/yaml/ for documentation.
7
build/x86-64:
Niels Möller's avatar
Niels Möller committed
8
  script:
9
  - yum install -y gmp-devel
Niels Möller's avatar
Niels Möller committed
10
  - ./.bootstrap &&
11
    ./configure --enable-fat --disable-documentation && make -j4 &&
Niels Möller's avatar
Niels Möller committed
12
13
    make check -j4
  tags:
14
  - shared
Niels Möller's avatar
Niels Möller committed
15
16
  except:
  - tags
17
build/x86:
Niels Möller's avatar
Niels Möller committed
18
  script:
19
  - yum install -y gmp-devel.i686
Niels Möller's avatar
Niels Möller committed
20
  - ./.bootstrap &&
21
    PKG_CONFIG_PATH="/usr/lib/pkgconfig/" CFLAGS="-O2 -g -m32" LDFLAGS="-m32" ./configure --build=i686-redhat-linux --enable-fat --disable-documentation && make -j4 &&
Niels Möller's avatar
Niels Möller committed
22
23
    make check -j4
  tags:
24
  - shared
Niels Möller's avatar
Niels Möller committed
25
26
  except:
  - tags
27
28
29
30
31
32
33
34
35
36
37
38
39
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
40
build/mini-gmp:
41
42
43
44
45
  script:
  - ./.bootstrap &&
    ./configure --disable-documentation --enable-mini-gmp && make -j4 &&
    make check -j4
  tags:
46
  - shared
47
48
  except:
  - tags
49
build/ubsan:
50
  image: fedora:26
51
  script:
52
  - yum install -y gmp-devel libubsan-static libubsan
53
54
55
56
  - ./.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:
57
  - shared
58
59
  except:
  - tags
60
build/asan:
61
  image: fedora:26
62
  script:
63
  - yum install -y gmp-devel
64
65
66
  - ./.bootstrap && 
  - CXXFLAGS="-fsanitize=address -g -O2" CFLAGS="-fsanitize=address -g -O2" ./configure --disable-documentation &&
    make -j4 && make check -j4
67
68
  tags:
  - shared
69
70
  except:
  - tags
71
build/static-analyzers:
72
  image: fedora:26
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
  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/*