From 4cfd948d660211cf6b46969dee0d9c1423c0e943 Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Wed, 24 Oct 2018 08:43:51 +0200 Subject: [PATCH] CI: add -Werror to all warning free jobs and add clang-7 job Fixes #97. --- .gitlab-ci.yml | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b36863e2..0025b0ba 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,7 +8,7 @@ build-debian: - debian - amd64 script: - - meson build --buildtype release + - env CFLAGS='-Werror' meson build --buildtype release - ninja -C build - cd build && meson test -v @@ -19,7 +19,7 @@ build-debian-static: - debian - amd64 script: - - meson build --buildtype release --default-library static + - env CFLAGS='-Werror' meson build --buildtype release --default-library static - ninja -C build - cd build && meson test -v @@ -29,11 +29,12 @@ build-win32: tags: - win32 script: - - meson build --buildtype release - --libdir lib - --prefix "$(pwd)/build/dav1d_install" - --cross-file /opt/crossfiles/i686-w64-mingw32.meson - -Ddefault_library=both + - env CFLAGS='-Werror' + meson build --buildtype release + --libdir lib + --prefix "$(pwd)/build/dav1d_install" + --cross-file /opt/crossfiles/i686-w64-mingw32.meson + -Ddefault_library=both - ninja -C build - ninja -C build install artifacts: @@ -48,11 +49,12 @@ build-win64: tags: - win64 script: - - meson build --buildtype release - --libdir lib - --prefix "$(pwd)/build/dav1d_install" - --cross-file /opt/crossfiles/x86_64-w64-mingw32.meson - -Ddefault_library=both + - env CFLAGS='-Werror' + meson build --buildtype release + --libdir lib + --prefix "$(pwd)/build/dav1d_install" + --cross-file /opt/crossfiles/x86_64-w64-mingw32.meson + -Ddefault_library=both - ninja -C build - ninja -C build install artifacts: @@ -67,7 +69,7 @@ build-debian-aarch64: - aarch64 - debian script: - - meson build --buildtype release + - env CFLAGS='-Werror' meson build --buildtype release - ninja -C build - cd build && meson test -v @@ -87,14 +89,16 @@ build-macos: tags: - macos script: - - meson build --buildtype release -Ddefault_library=both + - env CFLAGS='-Werror' meson build --buildtype release -Ddefault_library=both - ninja -C build - cd build && meson test -v build-debian-werror: + image: dav1d-debian-aarch64:201810240631 stage: build tags: + - aarch64 - debian script: - - env CFLAGS='-Werror' meson build -Dbuild_tests=false + - env CC='clang-7' CFLAGS='-Werror' meson build -Dbuild_tests=false - ninja -C build