Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional compilers and platforms to Travis testing #171

Merged
merged 2 commits into from
Feb 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 83 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,94 @@
sudo: false
language: c
compiler:
- gcc
sudo: false

git:
depth: 5

addons:
apt:
packages:
- libssl-dev
- libevent-dev
- libexpat-dev
- 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: osx
name: Clang on OS X, 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: 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

before_install:
- |
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew update
brew install openssl
fi

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
- (cd testdata/clang-analysis.tdir; bash clang-analysis.test)