forked from codeplaysoftware/portBLAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (34 loc) · 1.15 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
language: cpp
sudo: required
dist: trusty
os:
- linux
services:
- docker
env:
- IMPL=COMPUTECPP CXX_COMPILER=g++-7 CC_COMPILER=gcc-7 TARGET=opencl
- IMPL=COMPUTECPP CXX_COMPILER=clang++-6.0 CC_COMPILER=clang-6.0 TARGET=opencl
matrix:
fast_finish: true
# Some tests are not passing on host. We need the newer version of computecpp.
allow_failures:
- env: IMPL=COMPUTECPP CXX_COMPILER=g++-7 CC_COMPILER=gcc-7 TARGET=host
- env: IMPL=COMPUTECPP CXX_COMPILER=clang++-6.0 CC_COMPILER=clang-6.0 TARGET=host
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
- docker build --build-arg c_compiler=${CC_COMPILER}
--build-arg cxx_compiler=${CXX_COMPILER}
--build-arg git_branch=${GIT_BRANCH}
--build-arg git_slug=${GIT_SLUG}
--build-arg impl=${IMPL}
--build-arg target=${TARGET}
-t sycl-blas .
script:
- docker run sycl-blas