Add basic Travis config for Linux builds

Performs a single build on Linux using the unified
headers and linking against the ICD.

Also add a build badge to the README.

Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
Kevin Petit
2018-10-15 16:40:20 +01:00
committed by Kévin Petit
parent d90bb74206
commit 95196e7fb4
2 changed files with 29 additions and 1 deletions

28
.travis.yml Normal file
View File

@@ -0,0 +1,28 @@
language: cpp
os:
- linux
script:
- export TOP=$(pwd)
- git clone https://github.com/KhronosGroup/OpenCL-Headers.git
- cd OpenCL-Headers
- ln -s CL OpenCL # For OSX builds
- cd ..
- git clone https://github.com/KhronosGroup/OpenCL-ICD-Loader.git
- cd ${TOP}/OpenCL-ICD-Loader
- mkdir build
- cd build
- cmake -DOPENCL_INCLUDE_DIRS=${TOP}/OpenCL-Headers/ ..
- make
- cd ${TOP}
- ls -l
- mkdir build
- cd build
- cmake -DCLConf_OUT_DIR=.
-DCLConform_LIB_DIR=${TOP}/OpenCL-ICD-Loader/build/lib
-DCLConform_LIBRARIES="-lm -lpthread -lOpenCL"
-DCLConform_HEADERS=${TOP}/OpenCL-Headers
-DCMAKE_CL_64=ON
../test_conformance/
- make -j2

View File

@@ -1,2 +1,2 @@
# OpenCL-CTS
# OpenCL-CTS [![Build Status](https://api.travis-ci.org/KhronosGroup/OpenCL-CTS.svg?branch=cl12_trunk)](https://travis-ci.org/KhronosGroup/OpenCL-CTS/branches)
The OpenCL Conformance Tests