Browse Source

travis: use GCC 6 in CMake builds

GCC 4.8.4 has a bug with system includes: it does not ignore warnings
for files from system include directories. This breaks our Travis builds
due to warnings in zlib.h.
adaptive-webui-19844
Eugene Shalygin 8 years ago
parent
commit
8c589b8579
  1. 8
      .travis.yml

8
.travis.yml

@ -55,7 +55,7 @@ addons: @@ -55,7 +55,7 @@ addons:
apt:
sources:
# sources list: https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
#- ubuntu-toolchain-r-test
- ubuntu-toolchain-r-test
#- boost-latest
- sourceline: 'ppa:qbittorrent-team/qbittorrent-stable'
- sourceline: 'ppa:beineri/opt-qt551-trusty'
@ -74,6 +74,7 @@ addons: @@ -74,6 +74,7 @@ addons:
- qt55base
- qt55tools
- ninja-build
- [gcc-6, g++-6]
before_install:
# only allow specific build for coverity scan, others will stop
@ -95,6 +96,11 @@ before_install: @@ -95,6 +96,11 @@ before_install:
# Qt 5
PATH=/opt/qt55/bin:${PATH}
if [ "$build_system" = "cmake" ]; then
COMPILER_VERSION=6
export CXX="${CXX}-${COMPILER_VERSION}" CC="${CC}-${COMPILER_VERSION}"
fi
fi
# print settings

Loading…
Cancel
Save