Attempt to disable pretty print control codes for CI
This commit is contained in:
parent
f4209b9de6
commit
bc6f7937ee
3 changed files with 6 additions and 1 deletions
3
build.sh
3
build.sh
|
@ -34,6 +34,9 @@ while [[ $# > 0 ]]; do
|
||||||
export DOCKER_IMAGENAME=$2
|
export DOCKER_IMAGENAME=$2
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--noprettyprint)
|
||||||
|
export DOTNET_CORESDK_NOPRETTYPRINT=1
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
args="$args $1"
|
args="$args $1"
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# Detect build servers
|
# 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.
|
# Jenkins or VSO build, disable colors because they make things gross.
|
||||||
NO_COLOR=1
|
NO_COLOR=1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -37,6 +37,7 @@ phases:
|
||||||
- ${{ if eq(parameters.agentOs, 'Linux') }}:
|
- ${{ if eq(parameters.agentOs, 'Linux') }}:
|
||||||
- script: ./build.sh
|
- script: ./build.sh
|
||||||
--test --pack --publish
|
--test --pack --publish
|
||||||
|
--noprettyprint
|
||||||
--configuration $(BuildConfig)
|
--configuration $(BuildConfig)
|
||||||
$(DockerParameter)
|
$(DockerParameter)
|
||||||
--architecture $(BuildArchitecture)
|
--architecture $(BuildArchitecture)
|
||||||
|
@ -49,6 +50,7 @@ phases:
|
||||||
- ${{ if eq(parameters.agentOs, 'Darwin') }}:
|
- ${{ if eq(parameters.agentOs, 'Darwin') }}:
|
||||||
- script: ./build.sh
|
- script: ./build.sh
|
||||||
--test --pack --publish
|
--test --pack --publish
|
||||||
|
--noprettyprint
|
||||||
--configuration $(BuildConfig)
|
--configuration $(BuildConfig)
|
||||||
displayName: Build
|
displayName: Build
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue