-
Notifications
You must be signed in to change notification settings - Fork 41
/
.travis.yml
74 lines (64 loc) · 2.61 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# CI integration is largely adopted from Denis Demidov's VexCL.
# URL: https://github.com/ddemidov/vexcl
sudo: required
language: cpp
dist: trusty
osx_image: xcode7.3
os:
- linux
- osx
compiler:
- clang
- gcc
branches:
only: develop
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]];
then sudo apt-get -qq install
cmake
libboost-chrono-dev
libboost-date-time-dev
libboost-filesystem-dev
libboost-system-dev
libboost-thread-dev
libboost-program-options-dev
libboost-test-dev
libboost-regex-dev
opencl-headers
; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash buildprocess/amd_sdk.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tar -xjf AMD-SDK.tar.bz2; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then AMDAPPSDKROOT=${HOME}/AMDAPPSDK; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export OPENCL_VENDOR_PATH=${AMDAPPSDKROOT}/etc/OpenCL/vendors; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir -p ${OPENCL_VENDOR_PATH}; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh AMD-APP-SDK*.sh --tar -xf -C ${AMDAPPSDKROOT}; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo libamdocl64.so > ${OPENCL_VENDOR_PATH}/amdocl64.icd; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export LD_LIBRARY_PATH=${AMDAPPSDKROOT}/lib/x86_64:${LD_LIBRARY_PATH}; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CMAKE_LIBRARY_PATH=${AMDAPPSDKROOT}/lib/x86_64; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then chmod +x ${AMDAPPSDKROOT}/bin/x86_64/clinfo; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ${AMDAPPSDKROOT}/bin/x86_64/clinfo; fi
install:
- pip install conan
- conan install
matrix:
exclude:
- os: linux
- os: osx
include:
- os: linux
env: AURA_BASE=OPENCL
AURA_UNIT_TEST_DEVICE=0
RUNTEST="yes"
compiler: gcc
- os: osx
env: AURA_BASE=METAL
AURA_UNIT_TEST_DEVICE=0
RUNTEST="no"
compiler: clang
script:
- mkdir -p build && cd build
- conan install ..
- cmake -DAURA_BASE="$AURA_BASE" -DAURA_UNIT_TEST_DEVICE="$AURA_UNIT_TEST_DEVICE" ..
- make all
- if [[ "$RUNTEST" == "yes" ]]; then ctest; fi