mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 21:10:06 -04:00
appveyor: enable parallel build
(cherry picked from commit 1a79fd38aa3bd34d941c4949ad3e4ba09aa8142b)
This commit is contained in:
parent
bc7f2fd9f2
commit
d156c6085a
@ -15,6 +15,7 @@ environment:
|
||||
APPVEYOR_SAVE_CACHE_ON_ERROR: true
|
||||
CYG_ROOT: C:/MinGW/msys/1.0
|
||||
EVENT_TESTS_PARALLEL: 20
|
||||
EVENT_BUILD_PARALLEL: 10
|
||||
matrix:
|
||||
# !EVENT_ALLOW_FAILURE
|
||||
- EVENT_BUILD_METHOD: "cmake"
|
||||
@ -72,12 +73,12 @@ build_script:
|
||||
bash -lc "echo 'C:\MinGW /mingw' > /etc/fstab"
|
||||
bash -lc "echo 'C:\OpenSSL-Win32 /ssl' >> /etc/fstab"
|
||||
$env:APPVEYOR_BUILD_FOLDER = $env:APPVEYOR_BUILD_FOLDER -replace "\\", "/"
|
||||
bash -lc "exec 0</dev/null; exec 2>&1; cd $env:APPVEYOR_BUILD_FOLDER; bash -x ./autogen.sh && mkdir -p build-autotools && cd build-autotools && ../configure LDFLAGS='-L/ssl -L/ssl/lib -L/ssl/lib/MinGW' CFLAGS=-I/ssl/include $env:EVENT_CONFIGURE_OPTIONS && make && make verify -j$env:EVENT_TESTS_PARALLEL"
|
||||
bash -lc "exec 0</dev/null; exec 2>&1; cd $env:APPVEYOR_BUILD_FOLDER; bash -x ./autogen.sh && mkdir -p build-autotools && cd build-autotools && ../configure LDFLAGS='-L/ssl -L/ssl/lib -L/ssl/lib/MinGW' CFLAGS=-I/ssl/include $env:EVENT_CONFIGURE_OPTIONS && make -j $env:EVENT_BUILD_PARALLEL && make verify -j$env:EVENT_TESTS_PARALLEL"
|
||||
} else {
|
||||
md build-cmake 2> $null
|
||||
cd build-cmake
|
||||
cmake .. $env:EVENT_CMAKE_OPTIONS
|
||||
cmake --build .
|
||||
cmake --build . -j $env:EVENT_BUILD_PARALLEL
|
||||
$env:CTEST_PARALLEL_LEVEL=$env:EVENT_TESTS_PARALLEL
|
||||
ctest --output-on-failure
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user