Add gcc5 and gcc6 to travis build matrix. (#840)

This commit is contained in:
Jonathan Hui
2016-10-28 17:58:39 -07:00
committed by GitHub
parent e3fe9885bf
commit 43f2ba4db6
3 changed files with 36 additions and 12 deletions
+33 -11
View File
@@ -26,7 +26,7 @@
# POSSIBILITY OF SUCH DAMAGE.
#
language: cpp
language: generic
sudo: required
dist: trusty
@@ -43,29 +43,51 @@ after_success:
matrix:
include:
- env: BUILD_TARGET="pretty-check"
compiler: clang
os: linux
- env: BUILD_TARGET="scan-build"
compiler: clang
- env: BUILD_TARGET="scan-build" CC="clang" CXX="clang++"
os: linux
compiler: clang
- env: BUILD_TARGET="arm-gcc49"
compiler: gcc
os: linux
compiler: gcc
- env: BUILD_TARGET="arm-gcc54"
compiler: gcc
os: linux
- env: BUILD_TARGET="posix"
compiler: gcc
- env: BUILD_TARGET="posix" CC="clang" CXX="clang++"
os: linux
compiler: clang
- env: BUILD_TARGET="posix" CC="gcc" CXX="g++"
os: linux
compiler: gcc
- env: BUILD_TARGET="posix" CC="gcc-5" CXX="g++-5"
os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- env: BUILD_TARGET="posix" CC="gcc-6" CXX="g++-6"
os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- env: BUILD_TARGET="posix-distcheck" VERBOSE=1
compiler: gcc
os: linux
compiler: gcc
- env: BUILD_TARGET="posix-32-bit" VERBOSE=1
compiler: gcc
os: linux
compiler: gcc
- env: BUILD_TARGET="posix-ncp-spi" VERBOSE=1
compiler: gcc
os: linux
compiler: gcc
- env: BUILD_TARGET="posix-ncp" VERBOSE=1
compiler: gcc
os: linux
compiler: gcc
+2
View File
@@ -62,6 +62,8 @@ set -x
}
[ $BUILD_TARGET != posix ] || {
sh -c '$CC --version' || die
sh -c '$CXX --version' || die
make -f examples/Makefile-posix || die
}
+1 -1
View File
@@ -224,7 +224,7 @@ AC_PROG_LN_S
#
PROSPECTIVE_CFLAGS="-Wall -Wextra -Wshadow -Werror -std=c99 -pedantic-errors"
PROSPECTIVE_CXXFLAGS="-Wall -Wextra -Wshadow -Werror -Wno-c++14-compat"
PROSPECTIVE_CXXFLAGS="-Wall -Wextra -Wshadow -Werror -std=gnu++98 -Wno-c++14-compat"
AC_CACHE_CHECK([whether $CC is Clang],
[nl_cv_clang],