summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-03-13 10:55:16 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2016-03-13 10:55:16 +0100
commitdd74450a831f431d3c94608e81c45af1e4a68a22 (patch)
treea027cd20c4eb1aa8868270731e672b3aab6280bb /.travis.yml
parentde7e68e872e9574153f260ff8aa914892f60e490 (diff)
Updated Travis to reflect the changes in the Khronos website
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml16
1 files 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;