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
|
2022-06-18 10:49:09 +00:00
|
|
|
test-uvg266: &test-template
|
2018-07-05 11:39:58 +00:00
|
|
|
stage: test
|
2018-06-07 06:59:28 +00:00
|
|
|
script:
|
2020-10-13 09:39:31 +00:00
|
|
|
- bash .travis-install.bash
|
2024-07-31 10:45:48 +00:00
|
|
|
- export PATH="/opt/homebrew/bin/:${HOME}/bin:${PATH}"
|
2022-04-29 07:49:17 +00:00
|
|
|
- cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./ . || (cat config.log && false)
|
2022-04-29 06:35:14 +00:00
|
|
|
- make install
|
|
|
|
- env CTEST_PARALLEL_LEVEL=8 CTEST_OUTPUT_ON_FAILURE=1 make test
|
2018-06-08 07:08:27 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2022-04-28 18:12:39 +00:00
|
|
|
- bin/uvg266
|
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:
|
2021-11-22 11:34:59 +00:00
|
|
|
CFLAGS: '-fsanitize=address -g'
|
2018-06-14 07:10:05 +00:00
|
|
|
# LeakSanitizer doesn't work inside the container because it requires
|
|
|
|
# ptrace so we disable it.
|
|
|
|
ASAN_OPTIONS: 'detect_leaks=0'
|
2018-07-05 13:05:55 +00:00
|
|
|
# AddressSanitizer adds some extra symbols so we expect a failure from
|
|
|
|
# the external symbols test.
|
2022-04-29 05:24:13 +00:00
|
|
|
XFAIL_TESTS: test_external_symbols
|
2018-06-14 07:10:05 +00:00
|
|
|
|
2020-10-13 11:45:15 +00:00
|
|
|
#test-tsan:
|
|
|
|
# <<: *test-template
|
|
|
|
# variables:
|
|
|
|
# CFLAGS: '-fsanitize=thread'
|
|
|
|
# # Temporarily suppress known errors or false positives.
|
2021-04-23 07:56:50 +00:00
|
|
|
# TSAN_OPTIONS: 'suppressions=/builds/cs/ultravideo/kvazaar/tests/tsan_suppressions.txt'
|
2018-06-14 07:10:05 +00:00
|
|
|
|
2018-07-05 11:39:58 +00:00
|
|
|
test-ubsan:
|
|
|
|
<<: *test-template
|
2018-06-14 07:10:05 +00:00
|
|
|
variables:
|
2021-11-22 11:34:59 +00:00
|
|
|
CFLAGS: '-fsanitize=undefined -fno-sanitize-recover=all -fno-sanitize=alignment -g'
|
2018-06-14 07:10:05 +00:00
|
|
|
|
|
|
|
test-valgrind:
|
|
|
|
<<: *test-template
|
|
|
|
variables:
|
2022-04-29 06:35:14 +00:00
|
|
|
UVG_TEST_VALGRIND: 1
|
2020-03-10 17:06:59 +00:00
|
|
|
|
2024-07-31 10:41:26 +00:00
|
|
|
test-macos:
|
|
|
|
<<: *test-template
|
|
|
|
tags:
|
|
|
|
- macOS
|
|
|
|
|
2020-10-13 11:45:15 +00:00
|
|
|
#test-distcheck:
|
|
|
|
# <<: *test-template
|
|
|
|
# script:
|
|
|
|
# - export PATH="${HOME}/bin:${PATH}"
|
|
|
|
# - ./autogen.sh
|
2021-11-29 14:35:03 +00:00
|
|
|
# - ./configure --enable-werror || (cat config.log && false)
|
2020-10-13 11:45:15 +00:00
|
|
|
# - make --jobs=8 VERBOSE=1 distcheck
|
2020-09-02 14:59:52 +00:00
|
|
|
|
2020-10-13 09:21:37 +00:00
|
|
|
#test-10bit:
|
|
|
|
# <<: *test-template
|
|
|
|
# variables:
|
|
|
|
# CFLAGS: '-DKVZ_BIT_DEPTH=10'
|
2020-09-03 14:28:26 +00:00
|
|
|
# VAQ is not currently supported on the 10-bit build, so xfail it
|
2020-10-13 09:21:37 +00:00
|
|
|
#XFAIL_TESTS: test_tools.sh
|