forked from codeplaysoftware/computecpp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (41 loc) · 1012 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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