fix(ci): Build project using both clang and gcc
This commit is contained in:
parent
49b36fa436
commit
6d54893834
13
.travis.yml
13
.travis.yml
@ -4,29 +4,26 @@ dist: trusty
|
|||||||
language: cpp
|
language: cpp
|
||||||
compiler:
|
compiler:
|
||||||
- clang
|
- clang
|
||||||
# - gcc
|
- gcc
|
||||||
cache: ccache
|
cache: ccache
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- LLVM_VERSION=3.8.0
|
- LLVM_VERSION=3.8.0
|
||||||
- LLVM_ARCHIVE_PATH=$HOME/clang+llvm.tar.xz
|
- LLVM_ARCHIVE_PATH=$HOME/clang+llvm.tar.xz
|
||||||
- CC=$HOME/clang-$LLVM_VERSION/bin/clang
|
|
||||||
- CXX=$HOME/clang-$LLVM_VERSION/bin/clang++
|
|
||||||
- CPPFLAGS="-I $HOME/clang-$LLVM_VERSION/include/c++/v1"
|
|
||||||
- CXXFLAGS="-Qunused-arguments"
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- wget http://llvm.org/releases/$LLVM_VERSION/clang+llvm-$LLVM_VERSION-x86_64-linux-gnu-ubuntu-14.04.tar.xz -O $LLVM_ARCHIVE_PATH
|
- wget http://llvm.org/releases/$LLVM_VERSION/clang+llvm-$LLVM_VERSION-x86_64-linux-gnu-ubuntu-14.04.tar.xz -O $LLVM_ARCHIVE_PATH
|
||||||
- mkdir $HOME/clang+llvm
|
- mkdir $HOME/clang-$LLVM_VERSION
|
||||||
- tar xf $LLVM_ARCHIVE_PATH -C $HOME/clang+llvm --strip-components 1
|
- tar xf $LLVM_ARCHIVE_PATH -C $HOME/clang-$LLVM_VERSION --strip-components 1
|
||||||
- export PATH=$HOME/clang+llvm/bin:$PATH
|
- export PATH=$HOME/clang-$LLVM_VERSION/bin:$PATH
|
||||||
- sudo apt-add-repository -y "ppa:george-edison55/george-edison"
|
- sudo apt-add-repository -y "ppa:george-edison55/george-edison"
|
||||||
- sudo sed -i "s/trusty/wily/g" /etc/apt/sources.list
|
- sudo sed -i "s/trusty/wily/g" /etc/apt/sources.list
|
||||||
- sudo apt-get -qq update
|
- sudo apt-get -qq update
|
||||||
- sudo apt-get install -y cmake cmake-data libxrandr-dev libboost-dev libiw-dev libasound2-dev libmpdclient-dev
|
- sudo apt-get install -y cmake cmake-data libxrandr-dev libboost-dev libiw-dev libasound2-dev libmpdclient-dev
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- if [ "$CXX" = "clang++" ]; then export CPPFLAGS="-I $HOME/clang-$LLVM_VERSION/include/c++/v1" CXXFLAGS="-Qunused-arguments"; fi
|
||||||
- cmake --version
|
- cmake --version
|
||||||
- eval "$CXX --version"
|
- eval "$CXX --version"
|
||||||
- eval "$CC --version"
|
- eval "$CC --version"
|
||||||
|
Loading…
Reference in New Issue
Block a user