Permalink
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (41 sloc) 1012 Bytes
language: cpp
sudo: required
dist: trusty
os:
- linux
compiler:
- gcc
- clang
branches:
only:
- master
env:
- IMPL=COMPUTECPP
matrix:
fast_finish: true
addons:
apt:
sources:
- llvm-toolchain-precise
- ubuntu-toolchain-r-test
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main'
key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- python-yaml
- gcc-5
- g++-5
- libc++-dev
before_install:
- bash .travis/before_install.sh
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- if [ "$IMPL" = "COMPUTECPP" ]; then bash .travis/build_computecpp.sh; fi
script:
###########################
# Build ComputeCpp SDK
###########################
- mkdir build
- cd build
- cmake ../ -DComputeCpp_DIR=/tmp/computecpp -DCOMPUTECPP_SDK_BUILD_TESTS=1 -DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0"
- make -j2
- COMPUTECPP_TARGET="host" ctest -V