Attempt to disable pretty print control codes for CI

This commit is contained in:
Daniel Plaisted 2018-11-07 23:20:01 -08:00
parent f4209b9de6
commit bc6f7937ee
3 changed files with 6 additions and 1 deletions

View file

@ -34,6 +34,9 @@ while [[ $# > 0 ]]; do
export DOCKER_IMAGENAME=$2
shift
;;
--noprettyprint)
export DOTNET_CORESDK_NOPRETTYPRINT=1
;;
*)
args="$args $1"
;;

View file

@ -5,7 +5,7 @@
#
# Detect build servers
if [[ ! -z "$JENKINS_URL" || ! -z "$BUILD_BUILDID" ]]; then
if [[ ! -z "$JENKINS_URL" || ! -z "$BUILD_BUILDID" || ! -z "$DOTNET_CORESDK_NOPRETTYPRINT" ]]; then
# Jenkins or VSO build, disable colors because they make things gross.
NO_COLOR=1
fi

View file

@ -37,6 +37,7 @@ phases:
- ${{ if eq(parameters.agentOs, 'Linux') }}:
- script: ./build.sh
--test --pack --publish
--noprettyprint
--configuration $(BuildConfig)
$(DockerParameter)
--architecture $(BuildArchitecture)
@ -49,6 +50,7 @@ phases:
- ${{ if eq(parameters.agentOs, 'Darwin') }}:
- script: ./build.sh
--test --pack --publish
--noprettyprint
--configuration $(BuildConfig)
displayName: Build