.gitlab-ci.yml 2.75 KB
Newer Older
1
2
3
4
5
variables:
  BUILD_IMAGES_PROJECT: gnutls/build-images
  FEDORA_BUILD: buildenv-f26
  FEDORA_X86_BUILD: buildenv-f26-x86
  GET_SOURCES_ATTEMPTS: "3"
6

7
# remove any pre-installed headers from nettle
8
before_script:
9
 - yum remove -y nettle-devel
10

Niels Möller's avatar
Niels Möller committed
11
# See http://doc.gitlab.com/ce/ci/yaml/ for documentation.
12
build/x86-64:
13
  image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
Niels Möller's avatar
Niels Möller committed
14
15
  script:
  - ./.bootstrap &&
16
    ./configure --enable-fat --disable-documentation && make -j4 &&
Niels Möller's avatar
Niels Möller committed
17
18
    make check -j4
  tags:
19
  - shared
Niels Möller's avatar
Niels Möller committed
20
21
  except:
  - tags
22
build/x86:
23
  image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_X86_BUILD
Niels Möller's avatar
Niels Möller committed
24
25
  script:
  - ./.bootstrap &&
26
    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
27
28
    make check -j4
  tags:
29
  - shared
Niels Möller's avatar
Niels Möller committed
30
31
  except:
  - tags
32
33
34
35
36
37
38
39
40
41
42
43
44
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
45
build/mini-gmp:
46
  image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
47
48
49
50
51
  script:
  - ./.bootstrap &&
    ./configure --disable-documentation --enable-mini-gmp && make -j4 &&
    make check -j4
  tags:
52
  - shared
53
54
  except:
  - tags
55
build/ubsan:
56
  image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
57
58
59
60
61
  script:
  - ./.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:
62
  - shared
63
64
  except:
  - tags
65
build/asan:
66
  image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
67
68
69
70
  script:
  - ./.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
build/static-analyzers:
76
  image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
77
78
79
80
81
82
83
84
85
86
87
88
89
  script:
  - ./.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/*
90
91
92
93
94
95
96
97
98
99
100
101
102
103
build/gnutls:
  image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
  script:
  - ./.bootstrap &&
  - ./configure --disable-documentation --prefix=/usr --libdir=/usr/lib64 &&
    make -j4 && make install
  - git clone --depth 1 --branch master https://gitlab.com/gnutls/gnutls.git gnutls-git
  - cd gnutls-git && git submodule update --init && make autoreconf &&
    ./configure --disable-cxx --disable-guile --disable-doc && make -j$(nproc) &&
    make -j $(nproc) check
  tags:
  - shared
  except:
  - tags