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: matrix:
include: include:
- os: linux
compiler: clang
env:
build_type=debug
options=""
- os: linux - os: linux
compiler: clang compiler: clang
env: env:
build_type=release build_type=release
options="" options=""
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++"
- os: linux
compiler: gcc
env:
build_type=debug
options=""
- os: linux - os: linux
compiler: gcc compiler: gcc
env: env:
build_type=release build_type=release
options="" options=""
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
before_install:
- eval "${MATRIX_EVAL}"
script: 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 - cmake --build . -- -j2