Skip to content

Commit

Permalink
Attempt to disable pretty print control codes for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dsplaisted committed Nov 8, 2018
1 parent f4209b9 commit bc6f793
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ while [[ $# > 0 ]]; do
export DOCKER_IMAGENAME=$2
shift
;;
--noprettyprint)
export DOTNET_CORESDK_NOPRETTYPRINT=1
;;
*)
args="$args $1"
;;
Expand Down
2 changes: 1 addition & 1 deletion eng/_prettyprint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions eng/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ phases:
- ${{ if eq(parameters.agentOs, 'Linux') }}:
- script: ./build.sh
--test --pack --publish
--noprettyprint
--configuration $(BuildConfig)
$(DockerParameter)
--architecture $(BuildArchitecture)
Expand All @@ -49,6 +50,7 @@ phases:
- ${{ if eq(parameters.agentOs, 'Darwin') }}:
- script: ./build.sh
--test --pack --publish
--noprettyprint
--configuration $(BuildConfig)
displayName: Build

Expand Down

0 comments on commit bc6f793

Please sign in to comment.