-
Notifications
You must be signed in to change notification settings - Fork 16
/
.gitlab-ci.yml
84 lines (74 loc) · 2.33 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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
# Use Kvazaar CI base image which includes the build tools and ffmpeg + hmdec in ${HOME}/bin
image: ultravideo/kvazaar_ci_base:latest
# Build and test kvazaar
test-uvg266: &test-template
stage: test
script:
- bash .travis-install.bash
- export PATH="/opt/homebrew/bin/:${HOME}/bin:${PATH}"
- cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
- make install
- env CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
artifacts:
paths:
- bin/uvg266
expire_in: 1 week
test-asan:
<<: *test-template
variables:
CFLAGS: '-fsanitize=address -g'
# LeakSanitizer doesn't work inside the container because it requires
# ptrace so we disable it.
ASAN_OPTIONS: 'detect_leaks=0'
# AddressSanitizer adds some extra symbols so we expect a failure from
# the external symbols test.
XFAIL_TESTS: test_external_symbols
#test-tsan:
# <<: *test-template
# variables:
# CFLAGS: '-fsanitize=thread'
# # Temporarily suppress known errors or false positives.
# TSAN_OPTIONS: 'suppressions=/builds/cs/ultravideo/kvazaar/tests/tsan_suppressions.txt'
test-ubsan:
<<: *test-template
variables:
CFLAGS: '-fsanitize=undefined -fno-sanitize-recover=all -fno-sanitize=alignment -g'
test-valgrind:
<<: *test-template
variables:
UVG_TEST_VALGRIND: 1
test-macos:
<<: *test-template
tags:
- macOS
test-macos-asan:
<<: *test-template
tags:
- macOS
variables:
CFLAGS: '-fsanitize=address -g'
# LeakSanitizer doesn't work inside the container because it requires
# ptrace so we disable it.
ASAN_OPTIONS: 'detect_leaks=0'
# AddressSanitizer adds some extra symbols so we expect a failure from
# the external symbols test.
XFAIL_TESTS: test_external_symbols
test-macos-ubsan:
<<: *test-template
tags:
- macOS
variables:
CFLAGS: '-fsanitize=undefined -fno-sanitize-recover=all -fno-sanitize=alignment -g'
#test-distcheck:
# <<: *test-template
# script:
# - export PATH="${HOME}/bin:${PATH}"
# - ./autogen.sh
# - ./configure --enable-werror || (cat config.log && false)
# - make --jobs=8 VERBOSE=1 distcheck
#test-10bit:
# <<: *test-template
# variables:
# CFLAGS: '-DKVZ_BIT_DEPTH=10'
# VAQ is not currently supported on the 10-bit build, so xfail it
#XFAIL_TESTS: test_tools.sh