.travis.yml: update to xenial; add jobs for ubsan and asan (#1745)

As tested by @matthiaskrgr in the branch
https://github.com/matthiaskrgr/cppcheck/commits/travis_xenial
Add job to build Cppcheck on Ubuntu 14.04 trusty (same as for precise).
This commit is contained in:
Sebastian 2019-03-20 15:30:01 +01:00 committed by GitHub
parent b6953a46d7
commit 597107ac9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 1 deletions

View File

@ -1,5 +1,5 @@
language: cpp language: cpp
dist: trusty dist: xenial
compiler: compiler:
- gcc - gcc
@ -28,6 +28,16 @@ matrix:
compiler: clang compiler: clang
# defined extra jobs that run besides what is configured in the build matrix # defined extra jobs that run besides what is configured in the build matrix
include: include:
# -fsanitize=undefined
- name: "undefined behaviour sanitizers"
compiler: gcc
script:
- CXXFLAGS="-fsanitize=undefined -fno-sanitize-recover=all -Og -g3" make cppcheck test checkcfg -j 2
# -fsanitize=address
- name: "address sanitizers"
compiler: gcc
script:
- CXXFLAGS="-fsanitize=address -Og -g3" make cppcheck test checkcfg -j 2
# check a lot of stuff that only needs to be checked in a single configuration # check a lot of stuff that only needs to be checked in a single configuration
- name: "misc" - name: "misc"
compiler: clang compiler: clang
@ -162,6 +172,17 @@ matrix:
- CXX=g++ CXXFLAGS="${ORIGINAL_CXXFLAGS}" make cppcheck testrunner -j 2 - CXX=g++ CXXFLAGS="${ORIGINAL_CXXFLAGS}" make cppcheck testrunner -j 2
- make clean - make clean
- CXX=clang++ CXXFLAGS="${ORIGINAL_CXXFLAGS}" make cppcheck testrunner -j 2 - CXX=clang++ CXXFLAGS="${ORIGINAL_CXXFLAGS}" make cppcheck testrunner -j 2
# check if cppcheck builds on trusty
- name: "make ubuntu 14.04 trusty"
compiler: gcc
dist: trusty
before_install:
- sudo apt-get update -qq
- sudo apt-get install libxml2-utils libpcre3
script:
- CXX=g++ CXXFLAGS="${ORIGINAL_CXXFLAGS}" make cppcheck testrunner -j 2
- make clean
- CXX=clang++ CXXFLAGS="${ORIGINAL_CXXFLAGS}" make cppcheck testrunner -j 2
# check if cppcheck builds on osx # check if cppcheck builds on osx
- name: "make osx" - name: "make osx"
os: osx os: osx