updated travis for clang build

This commit is contained in:
subhransu mohanty 2019-05-09 16:59:13 +09:00 committed by Subhransu
parent f2e4b016a6
commit 906d6b68f3

View File

@ -13,30 +13,23 @@ addons:
matrix:
include:
- os: linux
compiler: clang
env:
build_type=debug
options=""
- os: linux
compiler: clang
env:
build_type=release
options=""
- os: linux
compiler: gcc
env:
build_type=debug
options=""
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++"
- os: linux
compiler: gcc
env:
build_type=release
options=""
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
before_install:
- eval "${MATRIX_EVAL}"
script:
- CXX=/usr/bin/g++-5 CC=/usr/bin/gcc-5 cmake -DLIB_INSTALL_DIR=/usr/lib .
- cmake -DLIB_INSTALL_DIR=/usr/lib .
- cmake --build . -- -j2