-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
34 lines (31 loc) · 919 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
language: cpp
dist: trusty
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- cmake
before_script:
#- cat /proc/cpuinfo
- wget https://raw.githubusercontent.com/KhronosGroup/SyclParallelSTL/master/.travis/install_intel_opencl.sh
- chmod +x ./install_intel_opencl.sh
- sudo ./install_intel_opencl.sh
- sudo add-apt-repository --yes ppa:beineri/opt-qt-5.10.1-trusty
- sudo apt-get update -qq
- sudo apt-get install qt510base qt510declarative opencl-headers ocl-icd-opencl-dev
script:
- clinfo
- mkdir build
- cd build
- source /opt/qt510/bin/qt510-env.sh
- cmake .. # -DCMAKE_PREFIX_PATH=/opt/qt
- make -j4
# removed _after section, otherwise build would not fail if tests fail
# reference: https://docs.travis-ci.com/user/customizing-the-build#Breaking-the-Build
- cd bin/
- chmod +x OCTests
- ./OCTests