mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 11:24:05 +00:00
120f285eb7
Drops the build stage in Gitlab CI tests and includes build in the test jobs. Building in a separate stage did not work as intended. The test jobs rebuilt Kvazaar without the CFLAGS given in the build jobs and overwrote the results from the build jobs. The test were therefore run without the sanitizers enabled.
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
# 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-kvazaar: &test-template
|
|
stage: test
|
|
script:
|
|
- export PATH="${HOME}/bin:${PATH}"
|
|
- ./autogen.sh
|
|
- ./configure --enable-werror || (cat config.log && false)
|
|
- make --jobs=8
|
|
- make check --jobs=8 VERBOSE=1
|
|
artifacts:
|
|
paths:
|
|
- src/kvazaar
|
|
- src/.libs
|
|
expire_in: 1 week
|
|
|
|
test-asan:
|
|
<<: *test-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'
|
|
|
|
test-tsan:
|
|
<<: *test-template
|
|
variables:
|
|
CFLAGS: '-fsanitize=thread'
|
|
|
|
test-ubsan:
|
|
<<: *test-template
|
|
variables:
|
|
CFLAGS: '-fsanitize=undefined -fno-sanitize-recover=all -fno-sanitize=alignment'
|
|
|
|
test-valgrind:
|
|
<<: *test-template
|
|
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
|