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

build-debian:
6
    image: registry.videolan.org:5000/dav1d-debian-unstable:20181114201132
7 8 9 10 11
    stage: build
    tags:
        - debian
        - amd64
    script:
12
        - env CFLAGS='-Werror' meson build --buildtype release
13
        - ninja -C build
Marvin Scholz's avatar
Marvin Scholz committed
14
        - cd build && meson test -v
15

16
build-debian-static:
17
    image: registry.videolan.org:5000/dav1d-debian-unstable:20181114201132
18 19 20 21 22
    stage: build
    tags:
        - debian
        - amd64
    script:
23
        - env CFLAGS='-Werror' meson build --buildtype release --default-library static
24 25 26
        - ninja -C build
        - cd build && meson test -v

27
build-win32:
28
    image: registry.videolan.org:5000/dav1d-debian-unstable:20181114201132
29 30 31 32
    stage: build
    tags:
        - win32
    script:
33 34 35 36 37 38
        - 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
39 40
        - ninja -C build
        - ninja -C build install
41 42 43 44 45
    artifacts:
        name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
        paths:
            - build/dav1d_install/
        expire_in: 1 week
46 47

build-win64:
48
    image: registry.videolan.org:5000/dav1d-debian-unstable:20181114201132
49 50 51 52
    stage: build
    tags:
        - win64
    script:
53 54 55 56 57 58
        - 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
59 60
        - ninja -C build
        - ninja -C build install
61 62 63 64 65
    artifacts:
        name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
        paths:
            - build/dav1d_install/
        expire_in: 1 week
66 67 68 69 70 71 72

build-debian-aarch64:
    stage: build
    tags:
        - aarch64
        - debian
    script:
73
        - env CFLAGS='-Werror' meson build --buildtype release
74 75 76 77 78 79 80 81 82 83 84 85 86
        - ninja -C build
        - cd build && meson test -v

build-debian-aarch64-clang-5:
    stage: build
    tags:
        - aarch64
        - clang5
        - debian
    script:
        - env CC=clang-5.0 CFLAGS='-integrated-as' meson build --buildtype release
        - ninja -C build
        - cd build && meson test -v
87 88 89 90 91 92

build-macos:
    stage: build
    tags:
        - macos
    script:
93
        - env CFLAGS='-Werror' meson build --buildtype release -Ddefault_library=both
94 95
        - ninja -C build
        - cd build && meson test -v
96 97

build-debian-werror:
98
    image: dav1d-debian-aarch64:201810240631
99 100
    stage: build
    tags:
101
        - aarch64
102 103
        - debian
    script:
104
        - env CC='clang-7' CFLAGS='-Werror' meson build -Dbuild_tests=false
105
        - ninja -C build
106 107

test-debian:
108
    image: registry.videolan.org:5000/dav1d-debian-unstable:20181114201132
109 110 111 112
    stage: test
    tags:
        - debian
        - amd64
Janne Grunau's avatar
Janne Grunau committed
113 114 115 116
    cache:
        key: testdata.git
        paths:
            - cache/dav1d-test-data.git/
117
    script:
Janne Grunau's avatar
Janne Grunau committed
118
        - test -d cache || mkdir cache
119
        - test -d cache/dav1d-test-data.git && GIT_DIR=cache/dav1d-test-data.git git fetch --refmap=refs/heads/master:refs/heads/master origin master
Janne Grunau's avatar
Janne Grunau committed
120 121
        - test -d cache/dav1d-test-data.git || git clone --bare https://code.videolan.org/videolan/dav1d-test-data.git cache/dav1d-test-data.git
        - git clone cache/dav1d-test-data.git tests/dav1d-test-data
122 123 124
        - meson build --buildtype release -Dtestdata_tests=true
        - ninja -C build
        - cd build && time meson test -v