Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #882 from ethereum-mining/ci-python3
Browse files Browse the repository at this point in the history
CI: Use Python 3 for future migration to Hunter 0.20
  • Loading branch information
chfast committed Mar 13, 2018
2 parents fa1f2bb + 1bdbffb commit bcdaf3a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ branches:
- master
- ci
- travis
- hunter
- /^release.*$/
matrix:
include:
Expand All @@ -27,9 +28,11 @@ before_install: |
fi
if [ "$TRAVIS_OS_NAME" = linux ]; then
scripts/install_cmake.sh
sudo pip install --upgrade requests pyopenssl
pyenv local 3.6
pip install --user requests
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
sudo pip install requests
HOMEBREW_NO_AUTO_UPDATE=1 brew install -q python3
pip3 install -q requests
fi
script:
- cmake -DHUNTER_JOBS_NUMBER=4 -DETHASHCUDA=$CUDA -DETHASHCL=ON -DAPICORE=ON -H. -Bbuild
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ HunterGate(
)

if(HUNTER_ENABLED)
find_package(PythonInterp)
find_package(PythonInterp 3)
if(PYTHONINTERP_FOUND)
hunter_gate_self(
"${HUNTER_CACHED_ROOT}"
Expand Down
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ install: | # Download CUDA Windows installer (local) and extract /compiler/* to
7z x CUDA-v9.0-WindowsServer2012.zip -oC:/
set PATH=%PATH%;C:/CUDA/v9.0/bin
nvcc -V
set PATH=C:\Python36-x64;C:\Python36-x64\Scripts;%PATH%
pip install requests
before_build:
- cmake -G "Visual Studio 14 2015 Win64" -H. -Bbuild -DETHASHCUDA=ON -DAPICORE=ON
Expand Down

0 comments on commit bcdaf3a

Please sign in to comment.