language: cpp branches: only: - master matrix: include: - os: linux dist: trusty sudo: required env: CUDA=ON - os: osx osx_image: xcode8.3 env: CUDA=OFF cache: directories: - $HOME/.hunter/_Base/Cache before_install: - if [[ "$CUDA" = ON ]]; then source scripts/install-cuda-trusty.sh; fi - if [ "$TRAVIS_OS_NAME" = linux ]; then scripts/install_cmake.sh; fi script: - cmake -DHUNTER_JOBS_NUMBER=4 -DETHASHCUDA=$CUDA -DETHASHCL=ON -H. -Bbuild - cmake --build build - build/ethminer/ethminer --list-devices -G - build/ethminer/ethminer --list-devices -U - if [ "$TRAVIS_OS_NAME" = linux ]; then ldd -v build/ethminer/ethminer; fi - if [ "$TRAVIS_OS_NAME" = osx ]; then otool -L build/ethminer/ethminer; fi