Valgrind only for Linux

This commit is contained in:
Niels 2016-04-29 20:00:33 +02:00
parent 68c50073a4
commit 40abeb28d5

View file

@ -45,7 +45,7 @@ matrix:
compiler: clang compiler: clang
addons: addons:
apt: apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.6'] sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise']
packages: ['clang-3.6', 'valgrind'] packages: ['clang-3.6', 'valgrind']
env: COMPILER=clang++-3.6 env: COMPILER=clang++-3.6
@ -53,7 +53,7 @@ matrix:
compiler: clang compiler: clang
addons: addons:
apt: apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.7'] sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise']
packages: ['clang-3.7', 'valgrind'] packages: ['clang-3.7', 'valgrind']
env: COMPILER=clang++-3.7 env: COMPILER=clang++-3.7
@ -61,7 +61,7 @@ matrix:
compiler: clang compiler: clang
addons: addons:
apt: apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.8'] sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-precise']
packages: ['clang-3.8', 'valgrind'] packages: ['clang-3.8', 'valgrind']
env: COMPILER=clang++-3.8 env: COMPILER=clang++-3.8
@ -73,6 +73,22 @@ matrix:
packages: ['clang-3.9', 'valgrind'] packages: ['clang-3.9', 'valgrind']
env: COMPILER=clang++-3.9 env: COMPILER=clang++-3.9
- os: osx
osx_image: xcode7.1
compiler: clang
env: COMPILER=clang
before_install:
- brew update
- brew install valgrind
- os: osx
osx_image: xcode7.2
compiler: clang
env: COMPILER=clang
before_install:
- brew update
- brew install valgrind
- os: osx - os: osx
osx_image: xcode7.3 osx_image: xcode7.3
compiler: clang compiler: clang
@ -84,4 +100,6 @@ matrix:
script: script:
- make CXX=$COMPILER CXXFLAGS="-lstdc++" - make CXX=$COMPILER CXXFLAGS="-lstdc++"
- ./json_unit "*" - ./json_unit "*"
- valgrind --error-exitcode=1 --leak-check=full ./json_unit - if [ "${os}" = "linux" ]; then
valgrind --error-exitcode=1 --leak-check=full ./json_unit ;
fi