compile with both g++ and clang++

This commit is contained in:
Aditya Kulkarni
2018-11-01 15:05:26 -07:00
parent 9cf3d80dff
commit 7ef7ed3d84

View File

@@ -2,15 +2,22 @@ matrix:
include: include:
# works on Precise and Trusty # works on Precise and Trusty
- os: linux - os: linux
compiler: clang
addons: addons:
apt: apt:
sources: sources: ['llvm-toolchain-trusty-5.0']
- ubuntu-toolchain-r-test packages: ['clang-5.0']
- llvm-toolchain-precise-3.7
packages:
- clang-3.7
env: env:
- MATRIX_EVAL="QMAKE_CC=clang-3.7 && QMAKE_CXX=clang++-3.7" - MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
- os: linux
compiler: g++
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-8']
env:
- MATRIX_EVAL="CC=gcc-8 CXX=g++-8"
before_install: before_install:
- eval "${MATRIX_EVAL}" - eval "${MATRIX_EVAL}"
@@ -21,6 +28,5 @@ before_install:
script: script:
- qmake -v - qmake -v
- clang++ -v - qmake zec-qt-wallet.pro CONFIG+=release
- qmake zec-qt-wallet.pro CONFIG+=release -spec linux-clang - make $MATRIX_EVAL -j4
- make