forked from skelcl/skelcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (32 loc) · 1.25 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
language: cpp
compiler:
- gcc
- clang
before_install:
- sudo apt-get update -qq
# install OpenCL 2.9 from AMD
- wget https://dl.dropboxusercontent.com/s/e9dihwobjt806op/AMD-APP-SDK-v2.9-lnx64.tgz
- tar xf AMD-APP-SDK-v2.9-lnx64.tgz
- sudo ./Install-AMD-APP.sh
# install tools for the build
- sudo apt-get install -y build-essential git cmake cmake-curses-gui unzip
# install dependencies
- sudo apt-get install -y libssl-dev libglu1-mesa-dev llvm-3.3-dev clang-3.3 libclang-3.3-dev
- mkdir libraries/stooling/libraries/llvm
- mkdir libraries/stooling/libraries/llvm/bin
- ln -s `which llvm-config-3.3` libraries/stooling/libraries/llvm/bin/llvm-config
- ln -s `llvm-config-3.3 --includedir` libraries/stooling/libraries/llvm/include
- ln -s `llvm-config-3.3 --libdir` libraries/stooling/libraries/llvm/lib
# install gtest
- wget http://googletest.googlecode.com/files/gtest-1.7.0.zip
- unzip -q gtest-1.7.0.zip
- mv gtest-1.7.0 libraries/gtest
- rm gtest-1.7.0.zip
before_script: mkdir build
script: cd build && cmake .. && make && make test
notifications:
email:
on_success: change
on_failure: always
env:
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/AMDAPP/lib/x86_64:/opt/AMDAPP/lib/x86 AMDAPPSDKROOT=/opt/AMDAPP