Commit 4cfd948d authored by Janne Grunau's avatar Janne Grunau

CI: add -Werror to all warning free jobs and add clang-7 job

Fixes #97.
parent 16ec1057
...@@ -8,7 +8,7 @@ build-debian: ...@@ -8,7 +8,7 @@ build-debian:
- debian - debian
- amd64 - amd64
script: script:
- meson build --buildtype release - env CFLAGS='-Werror' meson build --buildtype release
- ninja -C build - ninja -C build
- cd build && meson test -v - cd build && meson test -v
...@@ -19,7 +19,7 @@ build-debian-static: ...@@ -19,7 +19,7 @@ build-debian-static:
- debian - debian
- amd64 - amd64
script: script:
- meson build --buildtype release --default-library static - env CFLAGS='-Werror' meson build --buildtype release --default-library static
- ninja -C build - ninja -C build
- cd build && meson test -v - cd build && meson test -v
...@@ -29,11 +29,12 @@ build-win32: ...@@ -29,11 +29,12 @@ build-win32:
tags: tags:
- win32 - win32
script: script:
- meson build --buildtype release - env CFLAGS='-Werror'
--libdir lib meson build --buildtype release
--prefix "$(pwd)/build/dav1d_install" --libdir lib
--cross-file /opt/crossfiles/i686-w64-mingw32.meson --prefix "$(pwd)/build/dav1d_install"
-Ddefault_library=both --cross-file /opt/crossfiles/i686-w64-mingw32.meson
-Ddefault_library=both
- ninja -C build - ninja -C build
- ninja -C build install - ninja -C build install
artifacts: artifacts:
...@@ -48,11 +49,12 @@ build-win64: ...@@ -48,11 +49,12 @@ build-win64:
tags: tags:
- win64 - win64
script: script:
- meson build --buildtype release - env CFLAGS='-Werror'
--libdir lib meson build --buildtype release
--prefix "$(pwd)/build/dav1d_install" --libdir lib
--cross-file /opt/crossfiles/x86_64-w64-mingw32.meson --prefix "$(pwd)/build/dav1d_install"
-Ddefault_library=both --cross-file /opt/crossfiles/x86_64-w64-mingw32.meson
-Ddefault_library=both
- ninja -C build - ninja -C build
- ninja -C build install - ninja -C build install
artifacts: artifacts:
...@@ -67,7 +69,7 @@ build-debian-aarch64: ...@@ -67,7 +69,7 @@ build-debian-aarch64:
- aarch64 - aarch64
- debian - debian
script: script:
- meson build --buildtype release - env CFLAGS='-Werror' meson build --buildtype release
- ninja -C build - ninja -C build
- cd build && meson test -v - cd build && meson test -v
...@@ -87,14 +89,16 @@ build-macos: ...@@ -87,14 +89,16 @@ build-macos:
tags: tags:
- macos - macos
script: script:
- meson build --buildtype release -Ddefault_library=both - env CFLAGS='-Werror' meson build --buildtype release -Ddefault_library=both
- ninja -C build - ninja -C build
- cd build && meson test -v - cd build && meson test -v
build-debian-werror: build-debian-werror:
image: dav1d-debian-aarch64:201810240631
stage: build stage: build
tags: tags:
- aarch64
- debian - debian
script: script:
- env CFLAGS='-Werror' meson build -Dbuild_tests=false - env CC='clang-7' CFLAGS='-Werror' meson build -Dbuild_tests=false
- ninja -C build - ninja -C build
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