2018-06-11 07:29:37 +00:00
|
|
|
# Use Kvazaar CI base image which includes the build tools and ffmpeg + hmdec in ${HOME}/bin
|
|
|
|
image: ultravideo/kvazaar_ci_base:latest
|
2018-06-07 06:59:28 +00:00
|
|
|
|
2018-07-05 11:39:58 +00:00
|
|
|
# Build and test kvazaar
|
|
|
|
test-kvazaar: &test-template
|
|
|
|
stage: test
|
2018-06-07 06:59:28 +00:00
|
|
|
script:
|
2018-07-05 11:39:58 +00:00
|
|
|
- export PATH="${HOME}/bin:${PATH}"
|
2018-06-07 06:59:28 +00:00
|
|
|
- ./autogen.sh
|
2018-06-14 07:50:18 +00:00
|
|
|
- ./configure --enable-werror || (cat config.log && false)
|
2018-07-05 11:39:58 +00:00
|
|
|
- make --jobs=8
|
|
|
|
- make check --jobs=8 VERBOSE=1
|
2018-06-08 07:08:27 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- src/kvazaar
|
|
|
|
- src/.libs
|
2018-06-11 07:29:37 +00:00
|
|
|
expire_in: 1 week
|
2018-06-14 06:59:31 +00:00
|
|
|
|
2018-07-05 11:39:58 +00:00
|
|
|
test-asan:
|
|
|
|
<<: *test-template
|
2018-06-14 07:10:05 +00:00
|
|
|
variables:
|
|
|
|
CFLAGS: '-fsanitize=address'
|
|
|
|
# LeakSanitizer doesn't work inside the container because it requires
|
|
|
|
# ptrace so we disable it.
|
|
|
|
ASAN_OPTIONS: 'detect_leaks=0'
|
|
|
|
|
2018-07-05 11:39:58 +00:00
|
|
|
test-tsan:
|
|
|
|
<<: *test-template
|
2018-06-14 07:10:05 +00:00
|
|
|
variables:
|
|
|
|
CFLAGS: '-fsanitize=thread'
|
|
|
|
|
2018-07-05 11:39:58 +00:00
|
|
|
test-ubsan:
|
|
|
|
<<: *test-template
|
2018-06-14 07:10:05 +00:00
|
|
|
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
|