Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit 97290ff

Browse files
committed
AppVeyor: Clean up config
1 parent 74b98a2 commit 97290ff

File tree

2 files changed

+17
-32
lines changed

2 files changed

+17
-32
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ HunterGate(
5959
)
6060

6161
if(HUNTER_ENABLED)
62-
find_package(PythonInterp QUIET)
62+
# Find Python executable,
63+
# prefer version 3 that has requests module included.
64+
set(Python_ADDITIONAL_VERSIONS 3)
65+
find_package(PythonInterp)
6366
if(PYTHONINTERP_FOUND)
6467
hunter_gate_self(
6568
"${HUNTER_CACHED_ROOT}"

appveyor.yml

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -30,47 +30,29 @@ branches:
3030
- hunter
3131
os: Visual Studio 2015
3232
configuration:
33-
- RelWithDebInfo
33+
- RelWithDebInfo
3434
environment:
35-
TESTS: On
36-
GITHUB_USER_PASSWORD:
37-
secure: 7TuNppxpvI3M/IF1PfvzZ8LluCeCQAsdFoJY+KhNv/pe/rAw5HEsTjqdbyM1mEtd
38-
clone_script:
39-
# We have to overwrite the clone script to update submodules before
40-
# the cache invalidation check.
41-
- ps: |
42-
if(-not $env:appveyor_pull_request_number) {
43-
git clone -q --depth 1 --branch=$env:appveyor_repo_branch https://github.com/$env:appveyor_repo_name.git $env:appveyor_build_folder
44-
git checkout -qf $env:appveyor_repo_commit
45-
git submodule -q update --init --recursive
46-
} else {
47-
git clone -q --depth 1 https://github.com/$env:appveyor_repo_name.git $env:appveyor_build_folder
48-
git fetch -q origin +refs/pull/$env:appveyor_pull_request_number/merge:
49-
git checkout -qf FETCH_HEAD
50-
git submodule -q update --init --recursive
51-
}
35+
TESTS: On
36+
GITHUB_USER_PASSWORD:
37+
secure: 7TuNppxpvI3M/IF1PfvzZ8LluCeCQAsdFoJY+KhNv/pe/rAw5HEsTjqdbyM1mEtd
5238
cache:
53-
- build/deps -> cmake/ProjectJsonRpc.cmake
54-
#RDP LOGIN details for trouble shooting
55-
#init:
56-
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
57-
#on_finish:
58-
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
39+
- build/deps -> cmake/ProjectLibFF.cmake
5940
install:
60-
- scripts/install_deps.bat
61-
- set ETHEREUM_DEPS_PATH=%APPVEYOR_BUILD_FOLDER%\deps
62-
before_build:
63-
- if not exist build mkdir build
64-
- cd build
65-
- cmake -G "Visual Studio 14 2015 Win64" .. -DTESTS=%TESTS% -DEVMJIT=OFF
41+
- git submodule update --init --recursive
42+
- scripts/install_deps.bat
43+
- set ETHEREUM_DEPS_PATH=%APPVEYOR_BUILD_FOLDER%\deps
44+
before_build: |
45+
if not exist build mkdir build
46+
cd build
47+
cmake -G "Visual Studio 14 2015 Win64" .. -DTESTS=%TESTS% -DEVMJIT=OFF
6648
build_script:
6749
- msbuild cpp-ethereum.sln /p:Configuration=%CONFIGURATION% /m:%NUMBER_OF_PROCESSORS% /v:minimal
6850
- cd %APPVEYOR_BUILD_FOLDER%
6951
- scripts\release.bat %CONFIGURATION% %ETHEREUM_DEPS_PATH% %TESTS%
7052
after_build:
7153
ps: |
7254
if (-not $env:appveyor_pull_request_number) {
73-
pip install requests
55+
pip install --user requests
7456
cmake --build build --target hunter_upload_cache
7557
}
7658
test_script:

0 commit comments

Comments
 (0)