mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Add additional compilers and platforms to Travis testing
This commit is contained in:
parent
6f4818ebcb
commit
2d6e0d8eea
1 changed files with 76 additions and 5 deletions
81
.travis.yml
81
.travis.yml
|
|
@ -1,7 +1,9 @@
|
||||||
sudo: false
|
|
||||||
language: c
|
language: c
|
||||||
compiler:
|
sudo: false
|
||||||
- gcc
|
|
||||||
|
git:
|
||||||
|
depth: 5
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
|
|
@ -9,8 +11,77 @@ addons:
|
||||||
- libevent-dev
|
- libevent-dev
|
||||||
- libexpat-dev
|
- libexpat-dev
|
||||||
- clang
|
- clang
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
include:
|
||||||
|
- os: linux
|
||||||
|
name: GCC on Linux, Amd64
|
||||||
|
compiler: gcc
|
||||||
|
arch: amd64
|
||||||
|
- os: linux
|
||||||
|
name: Clang on Linux, Amd64
|
||||||
|
compiler: clang
|
||||||
|
arch: amd64
|
||||||
|
- os: linux
|
||||||
|
name: UBsan, GCC on Linux, Amd64
|
||||||
|
compiler: gcc
|
||||||
|
arch: amd64
|
||||||
|
dist: bionic
|
||||||
|
env: TEST_UBSAN=yes
|
||||||
|
- os: linux
|
||||||
|
name: UBsan, Clang on Linux, Amd64
|
||||||
|
compiler: clang
|
||||||
|
arch: amd64
|
||||||
|
dist: bionic
|
||||||
|
env: TEST_UBSAN=yes
|
||||||
|
- os: linux
|
||||||
|
name: Asan, GCC on Linux, Amd64
|
||||||
|
compiler: gcc
|
||||||
|
arch: amd64
|
||||||
|
dist: bionic
|
||||||
|
env: TEST_ASAN=yes
|
||||||
|
- os: linux
|
||||||
|
name: Asan, Clang on Linux, Amd64
|
||||||
|
compiler: clang
|
||||||
|
arch: amd64
|
||||||
|
dist: bionic
|
||||||
|
env: TEST_ASAN=yes
|
||||||
|
- os: osx
|
||||||
|
name: Clang on OS X, Amd64
|
||||||
|
compiler: clang
|
||||||
|
arch: amd64
|
||||||
|
- os: linux
|
||||||
|
name: GCC on Linux, Aarch64
|
||||||
|
compiler: gcc
|
||||||
|
arch: arm64
|
||||||
|
dist: bionic
|
||||||
|
- os: linux
|
||||||
|
name: Clang on Linux, Aarch64
|
||||||
|
compiler: clang
|
||||||
|
arch: arm64
|
||||||
|
dist: bionic
|
||||||
|
- os: linux
|
||||||
|
name: GCC on Linux, PowerPC64
|
||||||
|
compiler: gcc
|
||||||
|
arch: ppc64le
|
||||||
|
dist: bionic
|
||||||
|
- os: linux
|
||||||
|
name: Clang on Linux, PowerPC64
|
||||||
|
compiler: clang
|
||||||
|
arch: ppc64le
|
||||||
|
dist: bionic
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./configure --enable-debug --disable-flto
|
- |
|
||||||
- make
|
if [ "$TEST_UBSAN" = "yes" ]; then
|
||||||
|
export CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=undefined -fno-sanitize-recover"
|
||||||
|
./configure
|
||||||
|
elif [ "$TEST_ASAN" = "yes" ]; then
|
||||||
|
export CFLAGS="-DNDEBUG -g2 -O3 -fsanitize=address"
|
||||||
|
./configure
|
||||||
|
else
|
||||||
|
./configure --enable-debug --disable-flto
|
||||||
|
fi
|
||||||
|
- make -j 2
|
||||||
- make test
|
- make test
|
||||||
- (cd testdata/clang-analysis.tdir; bash clang-analysis.test)
|
- (cd testdata/clang-analysis.tdir; bash clang-analysis.test)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue