зеркало из https://github.com/aspnet/KoreBuild.git
Disable console colors when running on a CI machine
- a few of our builds fail on Travis due to these excess characters - e.g https://travis-ci.org/aspnet/Mvc/builds/207068889 - barely useful anywhere, even Travis (where web page shows some color) nits (both for KoreBuild.ps1 only): - quote the `$makeFileProj` variable in the preflight command too - move project file to the end of the response file
This commit is contained in:
Родитель
e957151345
Коммит
fc6f034380
|
@ -127,12 +127,21 @@ if [ ! -f $msbuildArtifactsDir ]; then
|
|||
mkdir -p $msbuildArtifactsDir
|
||||
fi
|
||||
|
||||
preflightClpOption='/clp:DisableConsoleColor'
|
||||
msbuildClpOption='/clp:DisableConsoleColor;Summary'
|
||||
if [ -z "${CI}${APPVEYOR}${TEAMCITY_VERSION}${TRAVIS}" ]; then
|
||||
# Not on any of the CI machines. Fine to use colors.
|
||||
preflightClpOption=''
|
||||
msbuildClpOption='/clp:Summary'
|
||||
fi
|
||||
|
||||
cat > $msbuildPreflightResponseFile <<ENDMSBUILDPREFLIGHT
|
||||
/nologo
|
||||
/p:NetFxVersion=$netfxversion
|
||||
/p:PreflightRestore=true
|
||||
/p:RepositoryRoot="$repoFolder/"
|
||||
/t:Restore
|
||||
$preflightClpOption
|
||||
"$makeFileProj"
|
||||
ENDMSBUILDPREFLIGHT
|
||||
|
||||
|
@ -144,7 +153,7 @@ cat > $msbuildResponseFile <<ENDMSBUILDARGS
|
|||
/p:RepositoryRoot="$repoFolder/"
|
||||
/fl
|
||||
/flp:LogFile="$msbuildLogFile";Verbosity=detailed;Encoding=UTF-8
|
||||
/clp:Summary
|
||||
$msbuildClpOption
|
||||
"$makeFileProj"
|
||||
ENDMSBUILDARGS
|
||||
echo -e "$msbuild_args" >> $msbuildResponseFile
|
||||
|
|
Загрузка…
Ссылка в новой задаче