-
Notifications
You must be signed in to change notification settings - Fork 32
/
.travis.yml
48 lines (42 loc) · 1.06 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
language: cpp
sudo: enabled
compiler:
- gcc
matrix:
include:
- os: linux
name: Ubuntu 16.04
dist: xenial
- os: linux
name: Ubuntu 18.04
dist: bionic
- os: windows
name: Windows
- os: osx
name: OSX
env:
- CC=gcc-9
- CXX=g++-9
- AR=g++-9
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install ocl-icd-libopencl1 opencl-headers ocl-icd-opencl-dev liboctave-dev; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install opencl-intel-cpu-runtime; fi
addons:
apt:
packages:
- ocl-icd-libopencl1
- opencl-headers
- ocl-icd-opencl-dev
- liboctave-dev
update: true
script:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
make -C src oct;
make -C src clean;
make -C src;
elif [ "$TRAVIS_OS_NAME" = "windows" ] ; then
mingw32-make -C src;
else
find /usr/local/Cellar/gcc -name libgomp.a -exec sudo ln -sf '{}' /usr/local/lib/ \; ;
make -C src AR=g++-9 CC=gcc-9 CXX=g++-9;
fi