https://github.com/CNugteren/CLTune
Revision b516ef7d35bcf99c0ef1165140cef844b52649b1 authored by Cedric Nugteren on 16 June 2016, 18:18:49 UTC, committed by Cedric Nugteren on 16 June 2016, 18:18:49 UTC
1 parent e95c158
Raw File
Tip revision: b516ef7d35bcf99c0ef1165140cef844b52649b1 authored by Cedric Nugteren on 16 June 2016, 18:18:49 UTC
Added a VERBOSE option to CMake to get additional diagnostic messages
Tip revision: b516ef7
.travis.yml
language: cpp
sudo: required
dist: trusty

compiler:
  - gcc
  - clang

addons:
  apt:
    sources:
      # kubuntu-backports contains newer versions of cmake to install
      - kubuntu-backports
    packages:
      - cmake

env:
  global:
    - CLTUNE_ROOT=${TRAVIS_BUILD_DIR}/bin/make/release
    - OPENCL_REGISTRY=https://www.khronos.org/registry/cl
    - OPENCL_ROOT=${TRAVIS_BUILD_DIR}/bin/opencl

before_install:
  - cmake --version;
  - ${CC} --version;
  - ${CXX} --version;

install:
  # The following linux logic is necessary because of Travis's move to the GCE platform, which does not
  # currently contain packages for fglrx: https://github.com/travis-ci/travis-ci/issues/5221
  # We build our own linkable .so file
  - if [ ${TRAVIS_OS_NAME} == "linux" ]; then
      mkdir -p ${OPENCL_ROOT};
      pushd ${OPENCL_ROOT};
      travis_retry git clone --depth 1 https://github.com/KhronosGroup/OpenCL-ICD-Loader.git;
      mv ./OpenCL-ICD-Loader/* .;
      travis_retry git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git inc/CL;
      pushd inc/CL;
      travis_retry wget -w 1 -np -nd -nv -A h,hpp ${OPENCL_REGISTRY}/api/2.1/cl.hpp;
      popd;
      mkdir -p lib;
      pushd lib;
      cmake -G "Unix Makefiles" ..;
      make;
      cp ./bin/libOpenCL.so .;
      popd;
      pushd inc/CL;
      travis_retry git fetch origin opencl12:opencl12;
      git checkout opencl12;
      popd;
      mv inc/ include/;
      popd;
    fi

before_script:
  - mkdir -p ${CLTUNE_ROOT}
  - pushd ${CLTUNE_ROOT}
  - cmake -DSAMPLES=ON -DTESTS=ON -DOPENCL_ROOT=${OPENCL_ROOT} ${TRAVIS_BUILD_DIR}

script:
  - make

branches:
  only:
    - master
    - development

notifications:
  email: false
back to top