From dd74450a831f431d3c94608e81c45af1e4a68a22 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Sun, 13 Mar 2016 10:55:16 +0100 Subject: [PATCH] Updated Travis to reflect the changes in the Khronos website --- .travis.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index d7a8e0a2..351836de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,19 +32,21 @@ install: - if [ ${TRAVIS_OS_NAME} == "linux" ]; then mkdir -p ${OPENCL_ROOT}; pushd ${OPENCL_ROOT}; - wget ${OPENCL_REGISTRY}/specs/opencl-icd-1.2.11.0.tgz; - tar -xf opencl-icd-1.2.11.0.tgz; - mv ./icd/* .; - mkdir -p inc/CL; + 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; - wget -r -w 1 -np -nd -nv -A h,hpp https://www.khronos.org/registry/cl/api/1.2/; - wget -w 1 -np -nd -nv -A h,hpp https://www.khronos.org/registry/cl/api/2.1/cl.hpp; + 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 .; + cp ./bin/libOpenCL.so .; + popd; + pushd inc/CL; + travis_retry git fetch origin opencl12:opencl12; + git checkout opencl12; popd; mv inc/ include/; popd;