forked from KhronosGroup/SyclParallelSTL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (47 loc) · 1.32 KB
/
.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
51
52
53
54
55
56
language: cpp
compiler: g++
sudo: required
dist: trusty
os:
- linux
compiler:
- gcc
- clang
branches:
only:
- master
- travis-ci
env:
- IMPL=TRISYCL
- IMPL=COMPUTECPP
matrix:
fast_finish: true
# Some tests are not passing on triSYCL
allow_failures:
- env: IMPL=TRISYCL
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
- clang-3.9
- libc++-dev
before_install:
- bash .travis/before_install.sh
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.9" CC="clang-3.9"; fi
- if [ "$IMPL" = "COMPUTECPP" ]; then bash .travis/build_computecpp.sh; fi
- if [ "$IMPL" = "TRISYCL" ]; then bash .travis/build_triSYCL.sh; fi
script:
###########################
# Build parallel-stl
###########################
- if [ "$IMPL" = "TRISYCL" ]; then ./build.sh --trisycl -DTRISYCL_INCLUDE_DIR=/tmp/triSYCL-master/include; fi
- if [ "$IMPL" = "COMPUTECPP" ]; then COMPUTECPP_TARGET="host" ./build.sh /tmp/ComputeCpp-latest -DCOMPUTECPP_DISABLE_GCC_DUAL_ABI=1; fi