-
Notifications
You must be signed in to change notification settings - Fork 57
/
.travis.yml
81 lines (71 loc) · 2.35 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
75
76
77
78
79
80
81
# Enable C++ support
language: cpp
# Compiler selection
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gdb
- apport
- nvidia-opencl-dev
#cache:
# directories:
# - ${OPENCL_ROOT}
before_install:
- |
if [[ "linux" == "linux" ]]; then
mkdir -p ${OPENCL_ROOT}
bash .travis/amd_sdk.sh ${AMDAPPSDK_VERSION}
tar -xjf AMD-SDK.tar.bz2
export OPENCL_VENDOR_PATH=${AMDAPPSDKROOT}/etc/OpenCL/vendors
mkdir -p ${OPENCL_VENDOR_PATH}
sh AMD-APP-SDK*.sh --tar -xf -C ${AMDAPPSDKROOT}
echo libamdocl64.so > ${OPENCL_VENDOR_PATH}/amdocl64.icd
export LD_LIBRARY_PATH=${AMDAPPSDKROOT}/lib/x86_64:${LD_LIBRARY_PATH}
export CMAKE_LIBRARY_PATH=${AMDAPPSDKROOT}/lib/x86_64;
chmod +x ${AMDAPPSDKROOT}/bin/x86_64/clinfo
${AMDAPPSDKROOT}/bin/x86_64/clinfo
rm AMD-APP-SDK*.sh
rm AMD-SDK.tar.bz2
fi
install:
- export CPLUS_INCLUDE_PATH=${AMDAPPSDKROOT}/include
- export LD_LIBRARY_PATH=${AMDAPPSDKROOT}/lib/x86_64:${LD_LIBRARY_PATH}
- export LIBRARY_PATH=${AMDAPPSDKROOT}/lib/x86_64:${LIBRARY_PATH}
before_script:
- ulimit -c unlimited -S # Enable core dumps
after_failure:
- cat /home/travis/build/beagle-dev/beagle-lib/examples/synthetictest/test-suite.log
- cat /home/travis/build/beagle-dev/beagle-lib/examples/tinytest/test-suite.log
- cat /home/travis/build/beagle-dev/beagle-lib/examples/oddstatetest/test-suite.log
- cat /home/travis/build/beagle-dev/beagle-lib/examples/complextest/test-suite.log
- cat /home/travis/build/beagle-dev/beagle-lib/examples/fourtaxon/test-suite.log
- cat /home/travis/build/beagle-dev/beagle-lib/examples/matrixtest/test-suite.log
# Build steps
script:
- mkdir build; cd build
- cmake ..
- make
- make test
# after_failure:
# - ls
# - COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1) # find core file
# - if [[ -f "$COREFILE" ]]; then gdb -c "$COREFILE" ./benchmark -ex "thread apply all bt" -ex "set pagination 0" -batch; fi
notifications:
recipients:
- msuchard@gmail.com
- daniel@kotim.me
email:
on_success: change
on_failure: always
env:
global:
- OPENCL_ROOT=$HOME/opencl
- OPENCL_LIB=amdappsdk
- OPENCL_VERSION="12"
- AMDAPPSDK_VERSION=291 # OpenCL 1.2
- AMDAPPSDKROOT=${OPENCL_ROOT}/AMDAPPSDK