forked from codeplaysoftware/portDNN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (30 loc) · 918 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
language: cpp
sudo: required
dist: xenial
os:
- linux
services:
- docker
env:
- IMPL=COMPUTECPP CXX_COMPILER=g++-7 CC_COMPILER=gcc-7 TARGET=opencl
- IMPL=COMPUTECPP CXX_COMPILER=clang++-5.0 CC_COMPILER=clang-5.0 TARGET=opencl
matrix:
fast_finish: true
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-dnn .
script:
- docker run sycl-dnn