Commit 68531613 authored by Nikos Mavrogiannopoulos's avatar Nikos Mavrogiannopoulos Committed by Niels Möller
Browse files

.gitlab-ci.yml: use pre-installed images for gnutls



This avoids the need to install packages during check, and
reduces failures due to infrastructure.
Signed-off-by: default avatarNikos Mavrogiannopoulos <nmav@redhat.com>
parent 0df7896e
image: centos:7 variables:
BUILD_IMAGES_PROJECT: gnutls/build-images
FEDORA_BUILD: buildenv-f26
FEDORA_X86_BUILD: buildenv-f26-x86
GET_SOURCES_ATTEMPTS: "3"
# remove any pre-installed headers from nettle
before_script: before_script:
- yum install -y git make autoconf libtool automake gettext-devel glibc-devel gcc valgrind libasan-static libgcc.i686 glibc-devel.i686 - yum remove -y nettle-devel
# See http://doc.gitlab.com/ce/ci/yaml/ for documentation. # See http://doc.gitlab.com/ce/ci/yaml/ for documentation.
build/x86-64: build/x86-64:
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
script: script:
- yum install -y gmp-devel
- ./.bootstrap && - ./.bootstrap &&
./configure --enable-fat --disable-documentation && make -j4 && ./configure --enable-fat --disable-documentation && make -j4 &&
make check -j4 make check -j4
...@@ -15,8 +20,8 @@ build/x86-64: ...@@ -15,8 +20,8 @@ build/x86-64:
except: except:
- tags - tags
build/x86: build/x86:
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_X86_BUILD
script: script:
- yum install -y gmp-devel.i686
- ./.bootstrap && - ./.bootstrap &&
PKG_CONFIG_PATH="/usr/lib/pkgconfig/" CFLAGS="-O2 -g -m32" LDFLAGS="-m32" ./configure --build=i686-redhat-linux --enable-fat --disable-documentation && make -j4 && PKG_CONFIG_PATH="/usr/lib/pkgconfig/" CFLAGS="-O2 -g -m32" LDFLAGS="-m32" ./configure --build=i686-redhat-linux --enable-fat --disable-documentation && make -j4 &&
make check -j4 make check -j4
...@@ -38,6 +43,7 @@ build/aarch64: ...@@ -38,6 +43,7 @@ build/aarch64:
except: except:
- tags - tags
build/mini-gmp: build/mini-gmp:
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
script: script:
- ./.bootstrap && - ./.bootstrap &&
./configure --disable-documentation --enable-mini-gmp && make -j4 && ./configure --disable-documentation --enable-mini-gmp && make -j4 &&
...@@ -47,9 +53,8 @@ build/mini-gmp: ...@@ -47,9 +53,8 @@ build/mini-gmp:
except: except:
- tags - tags
build/ubsan: build/ubsan:
image: fedora:26 image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
script: script:
- yum install -y gmp-devel libubsan-static libubsan
- ./.bootstrap && - ./.bootstrap &&
CXXFLAGS="-fsanitize=undefined -fno-sanitize-recover -g -O2" CFLAGS="-fsanitize=undefined -fno-sanitize-recover -g -O2" ./configure CXXFLAGS="-fsanitize=undefined -fno-sanitize-recover -g -O2" CFLAGS="-fsanitize=undefined -fno-sanitize-recover -g -O2" ./configure
--disable-documentation && make -j4 && make check -j4 --disable-documentation && make -j4 && make check -j4
...@@ -58,9 +63,8 @@ build/ubsan: ...@@ -58,9 +63,8 @@ build/ubsan:
except: except:
- tags - tags
build/asan: build/asan:
image: fedora:26 image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
script: script:
- yum install -y gmp-devel
- ./.bootstrap && - ./.bootstrap &&
- CXXFLAGS="-fsanitize=address -g -O2" CFLAGS="-fsanitize=address -g -O2" ./configure --disable-documentation && - CXXFLAGS="-fsanitize=address -g -O2" CFLAGS="-fsanitize=address -g -O2" ./configure --disable-documentation &&
make -j4 && make check -j4 make -j4 && make check -j4
...@@ -69,9 +73,8 @@ build/asan: ...@@ -69,9 +73,8 @@ build/asan:
except: except:
- tags - tags
build/static-analyzers: build/static-analyzers:
image: fedora:26 image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
script: script:
- yum install -y gmp-devel clang compiler-rt cppcheck clang-analyzer
- ./.bootstrap - ./.bootstrap
- scan-build ./configure --disable-documentation - scan-build ./configure --disable-documentation
- scan-build --status-bugs -o scan-build-lib make -j$(nproc) - scan-build --status-bugs -o scan-build-lib make -j$(nproc)
...@@ -84,4 +87,3 @@ build/static-analyzers: ...@@ -84,4 +87,3 @@ build/static-analyzers:
when: on_failure when: on_failure
paths: paths:
- scan-build-lib/* - scan-build-lib/*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment