Skip to content
Snippets Groups Projects
Commit 9ad1b04f authored by psychocrypt's avatar psychocrypt
Browse files

fix broken travis macosx compile

add `brew update` to avoid that `brew tap homebrew/science` crash
parent adb2e196
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ addons: ...@@ -22,7 +22,7 @@ addons:
env: env:
global: global:
- CUDA_ROOT: $HOME/.cache/cuda - CUDA_ROOT: $HOME/.cache/cuda
matrix: matrix:
include: include:
- os: linux - os: linux
...@@ -76,7 +76,10 @@ matrix: ...@@ -76,7 +76,10 @@ matrix:
- XMRSTAK_CMAKE_FLAGS="-DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF" - XMRSTAK_CMAKE_FLAGS="-DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF"
before_install: before_install:
- if [ $TRAVIS_OS_NAME = osx ]; then brew tap homebrew/science; fi - if [ $TRAVIS_OS_NAME = osx ]; then
brew update;
brew tap homebrew/science;
fi
- export PATH=$CUDA_ROOT/bin:$PATH - export PATH=$CUDA_ROOT/bin:$PATH
install: install:
...@@ -100,7 +103,7 @@ script: ...@@ -100,7 +103,7 @@ script:
- if [ $TRAVIS_OS_NAME = osx ]; then - if [ $TRAVIS_OS_NAME = osx ]; then
brew install hwloc; brew install hwloc;
cmake -DMICROHTTPD_ENABLE=OFF -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl ${XMRSTAK_CMAKE_FLAGS} .; cmake -DMICROHTTPD_ENABLE=OFF -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl ${XMRSTAK_CMAKE_FLAGS} .;
else else
cmake -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} ${XMRSTAK_CMAKE_FLAGS} .; cmake -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} ${XMRSTAK_CMAKE_FLAGS} .;
fi; fi;
- make VERBOSE=1 install - make VERBOSE=1 install
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment