0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 07:31:03 +08:00

Problem: appveyor CI takes a long time

Solution: run some builds only on master or *full-ci* branches
This commit is contained in:
Simon Giesecke 2018-05-26 17:10:08 +02:00
parent 33ba7e14b3
commit a1efc68516

View File

@ -31,22 +31,14 @@ environment:
ENABLE_CURVE: ON ENABLE_CURVE: ON
- platform: Win32 - platform: Win32
configuration: Release configuration: Release
POLLER: epoll
API_POLLER: poll API_POLLER: poll
WITH_LIBSODIUM: ON WITH_LIBSODIUM: ON
ENABLE_CURVE: ON ENABLE_CURVE: ON
- platform: Win32
configuration: Release
POLLER: epoll
WITH_LIBSODIUM: ON
ENABLE_CURVE: ON
- platform: Win32 - platform: Win32
configuration: Debug configuration: Debug
WITH_LIBSODIUM: ON WITH_LIBSODIUM: ON
ENABLE_CURVE: ON ENABLE_CURVE: ON
- platform: x64
configuration: Release
WITH_LIBSODIUM: ON
ENABLE_CURVE: ON
- platform: x64 - platform: x64
configuration: Debug configuration: Debug
WITH_LIBSODIUM: ON WITH_LIBSODIUM: ON
@ -55,10 +47,6 @@ environment:
configuration: Release configuration: Release
WITH_LIBSODIUM: OFF WITH_LIBSODIUM: OFF
ENABLE_CURVE: OFF ENABLE_CURVE: OFF
- platform: Win32
configuration: Release
WITH_LIBSODIUM: OFF
ENABLE_CURVE: ON
- platform: Win32 - platform: Win32
configuration: Release configuration: Release
WITH_LIBSODIUM: ON WITH_LIBSODIUM: ON
@ -80,6 +68,12 @@ matrix:
fast_finish: false fast_finish: false
init: init:
- cmd: if "%NO_PR%"=="TRUE" (
if "%APPVEYOR_PULL_REQUEST_NUMBER%" NEQ "" (
echo "Build is disabled for PRs, aborting" &&
appveyor exit
)
)
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) #- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- cmake --version - cmake --version
- msbuild /version - msbuild /version
@ -89,7 +83,6 @@ cache:
- C:\projects\libsodium - C:\projects\libsodium
install: install:
- cmd: if "%ENABLE_ANALYSIS%"=="ON" ( if "%APPVEYOR_PULL_REQUEST_NUMBER%" NEQ "" appveyor exit )
- cmd: if "%Platform%"=="x64" set "CMAKE_GENERATOR=%CMAKE_GENERATOR% Win64" - cmd: if "%Platform%"=="x64" set "CMAKE_GENERATOR=%CMAKE_GENERATOR% Win64"
- cmd: echo "Generator='%CMAKE_GENERATOR%'" - cmd: echo "Generator='%CMAKE_GENERATOR%'"
- cmd: echo "Platform='%Platform%'" - cmd: echo "Platform='%Platform%'"
@ -164,11 +157,43 @@ test_script:
) )
- cmd: ctest -C "%Configuration%" -V %TEST_OPTIONS% - cmd: ctest -C "%Configuration%" -V %TEST_OPTIONS%
# the analysis build is repeated; apparently appveyor only uses the first section that matches some branch
for: for:
- -
branches: branches:
only: only:
- master - master
environment:
matrix:
- platform: Win32
configuration: Release
API_POLLER: poll
WITH_LIBSODIUM: ON
ENABLE_CURVE: ON
NO_PR: TRUE
- platform: x64
configuration: Release
WITH_LIBSODIUM: ON
ENABLE_CURVE: ON
NO_PR: TRUE
- platform: Win32
configuration: Release
WITH_LIBSODIUM: ON
ENABLE_CURVE: ON
NO_PR: TRUE
- platform: Win32
configuration: Release
WITH_LIBSODIUM: ON
ENABLE_CURVE: ON
ENABLE_ANALYSIS: ON
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
CMAKE_GENERATOR: "Visual Studio 15 2017"
MSVCVERSION: "v141"
MSVCYEAR: "vs2017"
NO_PR: TRUE
-
branches:
only:
- /.*analyze$/ - /.*analyze$/
environment: environment:
matrix: matrix:
@ -181,3 +206,4 @@ for:
CMAKE_GENERATOR: "Visual Studio 15 2017" CMAKE_GENERATOR: "Visual Studio 15 2017"
MSVCVERSION: "v141" MSVCVERSION: "v141"
MSVCYEAR: "vs2017" MSVCYEAR: "vs2017"
NO_PR: TRUE