forked from ultravideo/kvazaar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
67 lines (58 loc) · 1.48 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
# Use Kvazaar CI base image which includes the build tools and ffmpeg + hmdec in ${HOME}/bin
image: ultravideo/kvazaar_ci_base:latest
# Build kvazaar
build-kvazaar: &build-template
stage: build
script:
- ./autogen.sh
- ./configure --enable-werror || (cat config.log && false)
- make --jobs=8 V=1
artifacts:
paths:
- src/kvazaar
- src/.libs
expire_in: 1 week
build-asan:
<<: *build-template
variables:
CFLAGS: '-fsanitize=address'
# LeakSanitizer doesn't work inside the container because it requires
# ptrace so we disable it.
ASAN_OPTIONS: 'detect_leaks=0'
build-tsan:
<<: *build-template
variables:
CFLAGS: '-fsanitize=thread'
build-ubsan:
<<: *build-template
variables:
CFLAGS: '-fsanitize=undefined -fno-sanitize-recover=all -fno-sanitize=alignment'
.test-template: &test-template
stage: test
script:
- export PATH="${HOME}/bin:${PATH}"
- ./autogen.sh
- ./configure --enable-werror
- make check --jobs=8 VERBOSE=1
test-valgrind:
<<: *test-template
dependencies:
- build-kvazaar
variables:
KVAZAAR_OVERRIDE_angular_pred: generic
KVAZAAR_OVERRIDE_sao_band_ddistortion: generic
KVAZAAR_OVERRIDE_sao_edge_ddistortion: generic
KVAZAAR_OVERRIDE_calc_sao_edge_dir: generic
KVZ_TEST_VALGRIND: 1
test-asan:
<<: *test-template
dependencies:
- build-asan
test-tsan:
<<: *test-template
dependencies:
- build-tsan
test-ubsan:
<<: *test-template
dependencies:
- build-ubsan