.gitlab-ci.yml 4.15 KB
Newer Older
1 2 3 4 5
stages:
    - build
    - test

build-ubuntu:
6
    image: registry.videolan.org:5000/libplacebo-ubuntu-cosmic:20181205095959
7 8 9 10 11 12 13 14 15 16
    stage: build
    tags:
        - debian
        - amd64
    script:
        - meson build --buildtype release
                      --werror
                      -Dtests=true
                      -Dshaderc=enabled
                      -Dglslang=enabled
17
                      -Db_coverage=true
18
        - ninja -C build
19
        - cd build && meson test -v
20
        - ninja coverage-text && cat meson-logs/coverage.txt
21 22

build-ubuntu-static:
23
    image: registry.videolan.org:5000/libplacebo-ubuntu-cosmic:20181205095959
24 25 26 27 28 29 30 31 32 33 34 35
    stage: build
    tags:
        - debian
        - amd64
    script:
        - meson build --buildtype release
                      --default-library static
                      --werror
                      -Dtests=true
                      -Dshaderc=enabled
                      -Dglslang=enabled
        - ninja -C build
36
        - cd build && meson test -v
37 38

build-win32:
39
    image: registry.videolan.org:5000/libplacebo-ubuntu-cosmic:20181205095959
40 41 42 43 44 45 46 47 48 49 50
    stage: build
    tags:
        - win32
    script:
        - meson build --buildtype release
                      --werror
                      --libdir lib
                      --cross-file /opt/crossfiles/i686-w64-mingw32.meson
        - ninja -C build

build-win64:
51
    image: registry.videolan.org:5000/libplacebo-ubuntu-cosmic:20181205095959
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
    stage: build
    tags:
        - win64
    script:
        - meson build --buildtype release
                      --werror
                      --libdir lib
                      --cross-file /opt/crossfiles/x86_64-w64-mingw32.meson
        - ninja -C build

build-debian-aarch64:
    stage: build
    image: registry.videolan.org:5000/dav1d-debian-unstable-aarch64:20181122182457
    tags:
        - aarch64
        - debian
    script:
        - meson build --buildtype release --werror -Dtests=true
        - ninja -C build
        - cd build && meson test -v

build-macos:
    stage: build
    tags:
        - macos
    script:
        - meson build --buildtype release
                      -Ddefault_library=both
                      -Dtests=true
                      --werror
        - ninja -C build
        - cd build && meson test -v

test-ubuntu-asan:
86
    image: registry.videolan.org:5000/libplacebo-ubuntu-cosmic:20181205095959
87 88 89 90 91 92 93 94 95
    stage: test
    tags:
        - debian
        - amd64
    variables:
        ASAN_OPTIONS: 'detect_leaks=0'
    script:
        - meson build --buildtype debugoptimized -Dtests=true -Db_sanitize=address
        - ninja -C build
96
        - cd build && time meson test -v
97 98

test-ubuntu-msan:
99
    image: registry.videolan.org:5000/libplacebo-ubuntu-cosmic:20181205095959
100 101 102 103 104 105 106 107 108 109 110 111 112
    stage: test
    tags:
        - debian
        - amd64
    variables:
        MSAN_OPTIONS: 'exitcode=1'
    script:
        - env CC=clang meson build --buildtype debugoptimized
                                   -Dtests=true
                                   -Db_sanitize=memory
                                   -Db_lundef=false
                                   -Dvulkan=disabled # fails under msan
        - ninja -C build
113
        - cd build && time meson test -v
114 115

test-ubuntu-ubsan:
116
    image: registry.videolan.org:5000/libplacebo-ubuntu-cosmic:20181205095959
117 118 119 120 121 122 123 124 125 126 127 128
    stage: test
    tags:
        - debian
        - amd64
    variables:
        UBSAN_OPTIONS: 'print_stacktrace=1:halt_on_error=1'
    script:
        - env CC=clang meson build --buildtype debugoptimized
                                   -Dtests=true
                                   -Db_sanitize=undefined
                                   -Db_lundef=false
        - ninja -C build
129
        - cd build && time meson test -v
130 131

test-ubuntu-scan:
132
    image: registry.videolan.org:5000/libplacebo-ubuntu-cosmic:20181205095959
133 134 135 136 137 138 139 140 141 142 143
    stage: test
    tags:
        - debian
        - amd64
    script:
        - env CC=clang meson build --buildtype debugoptimized
                                   --werror
                                   -Dtests=true
                                   -Dshaderc=enabled
                                   -Dglslang=enabled
        - ninja -C build scan-build