@@ -206,7 +206,6 @@ matrix:
206206 # OSX
207207 # ###########################################################################
208208
209- # OSX
210209 # CLANG
211210 - os : osx
212211 osx_image : xcode10
@@ -222,6 +221,7 @@ matrix:
222221 - gcc@5
223222 - llvm
224223 - opencv
224+ - clinfo
225225 # GCC
226226 - os : osx
227227 osx_image : xcode10
@@ -248,8 +248,9 @@ matrix:
248248 - OCL_ROOT="$NUGETDIR/opencl-nug.0.777.77/build/native"
249249 install :
250250 # Install OpenCV
251- - choco install opencv
251+ - choco install opencv --version 3.4.4
252252 - export OPENCV_DIR=C:/tools/opencv/build/x64/vc15/lib
253+ - export PATH=C:/tools/opencv/build/x64/vc15/bin:$PATH
253254 # Install Boost
254255 - wget https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.7z
255256 - 7z x boost_1_67_0.7z -o/C/local
@@ -260,11 +261,13 @@ matrix:
260261 # Install OpenCL headers and libraries
261262 - choco install nuget.commandline
262263 - nuget install opencl-nug -Version 0.777.77 -OutputDirectory $NUGETDIR
264+ - ls -l $OCL_ROOT
263265 # Install OpenCL Runtime
264266 - 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
268271
269272cache :
270273 directories :
@@ -289,7 +292,7 @@ before_install:
289292
290293 # Combine global build options with OS/compiler-dependent options
291294 - 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}
293296 # Pick correct compiler on OSX
294297 - eval "${MATRIX_EVAL}"
295298
@@ -381,23 +384,27 @@ script:
381384 # ###########################################################################
382385 # Build Boost.Compute tests, benchmarks and examples
383386 # ###########################################################################
387+ - clinfo
384388 - mkdir -p build
385389 - cd build
390+ - echo ${CXXFLAGS}
391+ - echo ${CXX}
392+ - echo ${CCFLAGS}
393+ - echo ${CC}
394+ - echo ${GENERATOR}
386395 - 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} ..
390397 # 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
393401 - |
394402 if [[ ${RUN_TESTS} == "true" ]]; then
395403 # Print OpenCL devices
396404 ./example/list_devices
397405 # Run tests and examples
398406 ctest --output-on-failure --repeat-until-fail 2
399407 fi
400-
401408after_success :
402409 - |
403410 if [[ ${COVERAGE} == "true" ]]; then
0 commit comments