image: centos:7 variables: BUILD_IMAGES_PROJECT: gnutls/build-images FEDORA_BUILD: buildenv-f25 before_script: - yum install -y git make autoconf libtool automake gettext-devel glibc-devel gcc valgrind libasan-static libgcc.i686 glibc-devel.i686 # See http://doc.gitlab.com/ce/ci/yaml/ for documentation. Build and Check (x86-64): script: - yum install -y gmp-devel - ./.bootstrap && ./configure --disable-documentation && make -j4 && make check -j4 tags: - shared except: - tags Build and Check (x86): script: - yum install -y gmp-devel.i686 - ./.bootstrap && PKG_CONFIG_PATH="/usr/lib/pkgconfig/" CFLAGS="-O2 -g -m32" LDFLAGS="-m32" ./configure --build=i686-redhat-linux --disable-documentation && make -j4 && make check -j4 tags: - shared except: - tags Build and Check with mini-gmp: script: - ./.bootstrap && ./configure --disable-documentation --enable-mini-gmp && make -j4 && make check -j4 tags: - shared except: - tags Build and Check with ubsan: image: fedora:25 script: - yum install -y gmp-devel libubsan-static libubsan - ./.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: - shared except: - tags Build and Check with asan: image: fedora:25 script: - yum install -y gmp-devel - ./.bootstrap && - CXXFLAGS="-fsanitize=address -g -O2" CFLAGS="-fsanitize=address -g -O2" ./configure --disable-documentation && make -j4 && make check -j4 tags: - shared except: - tags 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/*