diff --git a/.travis.yml b/.travis.yml index 1e52d56..3ffbb3f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,9 @@ matrix: - ubuntu-toolchain-r-test packages: - g++-5 - env: COMPILER=g++-5 + env: + -CXX_COMPILER=g++-5 + -C_COMPILER=gcc-5 - compiler: clang addons: apt: @@ -20,7 +22,9 @@ matrix: - llvm-toolchain-precise-3.6 packages: - clang-3.6 - env: COMPILER=clang++-3.6 + env: + -CXX_COMPILER=clang++-3.6 + -C_COMPILER=clang-3.6 - compiler: clang addons: apt: @@ -29,14 +33,16 @@ matrix: - llvm-toolchain-precise-3.7 packages: - clang-3.7 - env: COMPILER=clang++-3.7 + env: + -CXX_COMPILER=clang++-3.7 + -C_COMPILER=clang-3.7 script: - mkdir build - cd build - cmake --version - source /opt/qt55/bin/qt55-env.sh - qmake -v - - cmake -DCMAKE_CXX_COMPILER=$COMPILER .. && make -j3 + - cmake -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_C_COMPILER=$C_COMPILER . && make -j3 before_install: - sudo add-apt-repository --yes ppa:beineri/opt-qt551-trusty - sudo apt-get update -qq