mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-16 19:41:56 -05:00
squash! ci: also test with MS Visual C on Azure Pipelines
We specifically reduce the number of parallel links for MSVC, as RAM usage is an issue with MSVC's parallel mode, manifested in the symptom: fatal error LNK1318: Unexpected PDB error; OK (0) '' Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
@@ -116,10 +116,12 @@ then
|
||||
CI_OS_NAME="$(echo "$AGENT_OS" | tr A-Z a-z)"
|
||||
test darwin != "$CI_OS_NAME" || CI_OS_NAME=osx
|
||||
CI_REPO_SLUG="$(expr "$BUILD_REPOSITORY_URI" : '.*/\([^/]*/[^/]*\)$')"
|
||||
jobs=10
|
||||
if test -n "$MSVC"
|
||||
then
|
||||
CC=compat/vcbuild/scripts/clink.pl
|
||||
jobname=windows-msvc
|
||||
jobs=4
|
||||
fi
|
||||
CC="${CC:-gcc}"
|
||||
|
||||
@@ -132,9 +134,9 @@ then
|
||||
}
|
||||
|
||||
BREW_INSTALL_PACKAGES=gcc@8
|
||||
export GIT_PROVE_OPTS="--timer --jobs 10 --state=failed,slow,save"
|
||||
export GIT_PROVE_OPTS="--timer --jobs $jobs --state=failed,slow,save"
|
||||
export GIT_TEST_OPTS="--verbose-log -x --write-junit-xml"
|
||||
MAKEFLAGS="$MAKEFLAGS --jobs=10"
|
||||
MAKEFLAGS="$MAKEFLAGS --jobs=$jobs"
|
||||
test windows_nt != "$CI_OS_NAME" ||
|
||||
GIT_TEST_OPTS="--no-chain-lint --no-bin-wrappers $GIT_TEST_OPTS"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user