@@ -206,7 +206,6 @@ matrix:
206
206
# OSX
207
207
# ###########################################################################
208
208
209
- # OSX
210
209
# CLANG
211
210
- os : osx
212
211
osx_image : xcode10
@@ -222,6 +221,7 @@ matrix:
222
221
- gcc@5
223
222
- llvm
224
223
- opencv
224
+ - clinfo
225
225
# GCC
226
226
- os : osx
227
227
osx_image : xcode10
@@ -248,8 +248,9 @@ matrix:
248
248
- OCL_ROOT="$NUGETDIR/opencl-nug.0.777.77/build/native"
249
249
install :
250
250
# Install OpenCV
251
- - choco install opencv
251
+ - choco install opencv --version 3.4.4
252
252
- export OPENCV_DIR=C:/tools/opencv/build/x64/vc15/lib
253
+ - export PATH=C:/tools/opencv/build/x64/vc15/bin:$PATH
253
254
# Install Boost
254
255
- wget https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.7z
255
256
- 7z x boost_1_67_0.7z -o/C/local
@@ -260,11 +261,13 @@ matrix:
260
261
# Install OpenCL headers and libraries
261
262
- choco install nuget.commandline
262
263
- nuget install opencl-nug -Version 0.777.77 -OutputDirectory $NUGETDIR
264
+ - ls -l $OCL_ROOT
263
265
# Install OpenCL Runtime
264
266
- choco install opencl-intel-cpu-runtime
265
- # Check if it's working
266
- - curl -L 'https://ci.appveyor.com/api/projects/oblomov/clinfo/artifacts/clinfo.exe?job=platform:+x64' -o clinfo.exe
267
- - ./clinfo.exe
267
+ # Download clinfo executable and add it to PATH
268
+ - mkdir bin
269
+ - curl -L 'https://ci.appveyor.com/api/projects/oblomov/clinfo/artifacts/clinfo.exe?job=platform:+x64' -o ./bin/clinfo.exe
270
+ - export PATH=./bin/:PATH
268
271
269
272
cache :
270
273
directories :
@@ -289,7 +292,7 @@ before_install:
289
292
290
293
# Combine global build options with OS/compiler-dependent options
291
294
- export CMAKE_OPTIONS=${CMAKE_OPTIONS}" "${ENV_CMAKE_OPTIONS}
292
- - export CXX_FLAGS =${CXX_FLAGS}" "${ENV_CXX_FLAGS}
295
+ - export CXXFLAGS =${CXX_FLAGS}" "${ENV_CXX_FLAGS}
293
296
# Pick correct compiler on OSX
294
297
- eval "${MATRIX_EVAL}"
295
298
@@ -381,23 +384,27 @@ script:
381
384
# ###########################################################################
382
385
# Build Boost.Compute tests, benchmarks and examples
383
386
# ###########################################################################
387
+ - clinfo
384
388
- mkdir -p build
385
389
- cd build
390
+ - echo ${CXXFLAGS}
391
+ - echo ${CXX}
392
+ - echo ${CCFLAGS}
393
+ - echo ${CC}
394
+ - echo ${GENERATOR}
386
395
- echo ${CMAKE_OPTIONS}
387
- - echo ${CXX_FLAGS}
388
- - if [[ ${TRAVIS_OS_NAME} != "windows" ]]; then cmake -G"${GENERATOR}" ${CMAKE_OPTIONS} -DCMAKE_CXX_FLAGS="${CXX_FLAGS}" .. ; fi
389
- - if [[ ${TRAVIS_OS_NAME} == "windows" ]]; then cmake -G"${GENERATOR}" ${CMAKE_OPTIONS} .. ; fi
396
+ - cmake -G"${GENERATOR}" ${CMAKE_OPTIONS} ..
390
397
# https://stackoverflow.com/questions/39865367/warning-section-textcoal-nt-is-deprecate-since-updating-to-mac-osx-sierra
391
- - if [[ ${TRAVIS_OS_NAME} == "osx" ]]; then cmake --build . -j 4 --config Debug 2>&1 | grep -v -e '^/var/folders/*' -e '^[[:space:]]*\.section' -e '^[[:space:]]*\^[[:space:]]*~*' ; fi
392
- - if [[ ${TRAVIS_OS_NAME} != "osx" ]]; then cmake --build . -j 4 --config Debug ; fi
398
+ # Build must be run sequentially or else the grep command will not catch warnings correctly
399
+ - if [[ ${TRAVIS_OS_NAME} == "osx" && ${CC} == "gcc-5" ]]; then cmake --build . --config Debug 2>&1 | grep -v -e '^/var/folders/*' -e '^[[:space:]]*\.section' -e '^[[:space:]]*\^[[:space:]]*~*' ; fi
400
+ - if [[ ${TRAVIS_OS_NAME} != "osx" || ${CC} != "gcc-5" ]]; then cmake --build . -j 4 --config Debug ; fi
393
401
- |
394
402
if [[ ${RUN_TESTS} == "true" ]]; then
395
403
# Print OpenCL devices
396
404
./example/list_devices
397
405
# Run tests and examples
398
406
ctest --output-on-failure --repeat-until-fail 2
399
407
fi
400
-
401
408
after_success :
402
409
- |
403
410
if [[ ${COVERAGE} == "true" ]]; then
0 commit comments