2014-10-22 14:25:30 +00:00
|
|
|
language: c
|
|
|
|
|
2017-06-15 12:17:04 +00:00
|
|
|
# Use container based infrastructure.
|
2015-07-17 11:12:50 +00:00
|
|
|
sudo: false
|
2015-05-05 14:14:19 +00:00
|
|
|
|
2016-02-17 15:44:02 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
2017-06-15 12:17:04 +00:00
|
|
|
- ubuntu-toolchain-r-test
|
2016-02-17 15:44:02 +00:00
|
|
|
packages:
|
2017-06-15 12:17:04 +00:00
|
|
|
- autoconf
|
|
|
|
- gcc-4.8
|
|
|
|
- libtool
|
|
|
|
- valgrind
|
|
|
|
- yasm
|
2016-02-17 15:44:02 +00:00
|
|
|
|
2015-05-05 14:14:19 +00:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2017-06-15 12:17:04 +00:00
|
|
|
|
2015-05-05 14:14:19 +00:00
|
|
|
include:
|
|
|
|
- compiler: clang
|
2018-06-14 06:53:12 +00:00
|
|
|
env: KVZ_TEST_VALGRIND=1
|
|
|
|
|
|
|
|
- compiler: clang
|
|
|
|
env: CFLAGS='-fsanitize=thread'
|
|
|
|
|
2018-06-14 06:56:08 +00:00
|
|
|
- compiler: clang
|
|
|
|
env: CFLAGS='-fsanitize=undefined -fno-sanitize-recover=all -fno-sanitize=alignment'
|
|
|
|
|
2015-07-17 11:12:50 +00:00
|
|
|
- compiler: gcc-4.8
|
2018-06-14 08:55:15 +00:00
|
|
|
env: CFLAGS='-fsanitize=address'
|
2015-11-06 13:05:38 +00:00
|
|
|
|
2016-05-31 08:59:28 +00:00
|
|
|
# We have some Mac specific code and Mac sometimes has odd build issues.
|
2016-02-17 15:47:36 +00:00
|
|
|
- os: osx
|
2016-05-31 08:59:28 +00:00
|
|
|
compiler: clang # gcc is actually clang on Travis OS X
|
2017-06-15 12:17:04 +00:00
|
|
|
install: true
|
2015-11-09 10:13:20 +00:00
|
|
|
script:
|
2015-12-21 12:59:09 +00:00
|
|
|
- ./autogen.sh
|
2018-06-14 08:48:29 +00:00
|
|
|
- ./configure --enable-werror || (cat config.log && false)
|
2017-06-15 12:17:04 +00:00
|
|
|
- make --jobs=2 V=1
|
2018-06-14 06:53:12 +00:00
|
|
|
- make check TESTS=kvazaar_tests
|
2015-11-06 13:05:38 +00:00
|
|
|
|
2017-06-15 12:17:04 +00:00
|
|
|
install: bash .travis-install.bash
|
2015-05-05 14:14:19 +00:00
|
|
|
|
|
|
|
script:
|
2017-06-15 12:17:04 +00:00
|
|
|
- ./autogen.sh
|
2018-06-14 08:48:29 +00:00
|
|
|
- ./configure --enable-werror || (cat config.log && false)
|
2017-06-15 12:17:04 +00:00
|
|
|
- make --jobs=2 V=1
|
2018-06-14 06:53:12 +00:00
|
|
|
- make check VERBOSE=1
|
2017-06-15 12:17:04 +00:00
|
|
|
|
2017-02-15 12:21:26 +00:00
|
|
|
after_script:
|
2017-06-15 12:17:04 +00:00
|
|
|
# Disable errors to work around Travis not knowing how to fix their stuff.
|
|
|
|
- set +e
|