forked from triSYCL/triSYCL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (44 loc) · 1.22 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
sudo: required
language: cpp
services:
- docker
env:
matrix:
- CC_BUILD=gcc-8
CXX_BUILD=g++-8
OPENMP=ON
OPENCL=OFF
- CC_BUILD=clang-6.0
CXX_BUILD=clang++-6.0
OPENMP=ON
OPENCL=OFF
# There is a bug with shipped version of Boost.Compute incompatible
# with g++-8
- CC_BUILD=gcc-7
CXX_BUILD=g++-7
OPENMP=ON
OPENCL=ON
- CC_BUILD=clang-6.0
CXX_BUILD=clang++-6.0
OPENMP=ON
OPENCL=ON
before_install:
- |
if [[ ${TRAVIS_PULL_REQUEST} == "false" ]]; then
export GIT_SLUG=${TRAVIS_REPO_SLUG}
export GIT_BRANCH=${TRAVIS_BRANCH}
else
export GIT_SLUG=${TRAVIS_PULL_REQUEST_SLUG}
export GIT_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH}
fi
- echo "Git repo | branch -> ${GIT_SLUG} | ${GIT_BRANCH}"
- docker build --build-arg cxx_compiler=${CXX_BUILD}
--build-arg c_compiler=${CC_BUILD}
--build-arg git_branch=${GIT_BRANCH}
--build-arg git_slug=${GIT_SLUG}
--build-arg openmp=${OPENMP}
--build-arg opencl=${OPENCL} -t trisycl .
- docker ps -a
- docker images
script:
- docker run trisycl