summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 471dd578ad8d073c2f6b245e79f0bd2fbe0ce993 (plain)
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
language: cpp
compiler:
  - gcc
  - clang
before_install:
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  - sudo add-apt-repository -y ppa:kalakris/cmake
  - sudo apt-get update -qq
  - sudo apt-get install -qq gcc-4.8 g++-4.8 clang
  - sudo apt-get install -qq fglrx=2:8.960-0ubuntu1 opencl-headers
  - sudo apt-get install -qq cmake
install:
  - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
before_script:
  - mkdir install
  - export PATH=`pwd`/install/bin:${PATH}
  - export LD_LIBRARY_PATH=`pwd`/install/lib64:`pwd`/install/lib:${LD_LIBRARY_PATH}
  - mkdir build
  - cd build
  - cmake -DCMAKE_INSTALL_PREFIX:PATH=../install ..
script:
  - make
  - make install
branches:
  only:
    - master
notifications:
  email: false