Skip to content

Commit

Permalink
Merge pull request #460 from tubaxenor/xc-ansi-deprecation
Browse files Browse the repository at this point in the history
Fix ansi option deprecation
  • Loading branch information
mcncl authored Oct 8, 2024
2 parents a597aa5 + 3eaca74 commit 7681d07
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/shared.bash
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function run_docker_compose() {
fi

if [[ "$(plugin_read_config ANSI "true")" == "false" ]] ; then
command+=(--no-ansi)
command+=(--ansi never)
fi

# Enable compatibility mode for v3 files
Expand Down
6 changes: 3 additions & 3 deletions tests/run.bats
Original file line number Diff line number Diff line change
Expand Up @@ -523,9 +523,9 @@ cmd3"
export BUILDKITE_PLUGIN_DOCKER_COMPOSE_ANSI=false

stub docker \
"compose --no-ansi -f docker-compose.yml -p buildkite1111 -f docker-compose.buildkite-1-override.yml pull myservice : echo pulled myservice" \
"compose --no-ansi -f docker-compose.yml -p buildkite1111 -f docker-compose.buildkite-1-override.yml up -d --scale myservice=0 myservice : echo started dependencies for myservice" \
"compose --no-ansi -f docker-compose.yml -p buildkite1111 -f docker-compose.buildkite-1-override.yml run --name buildkite1111_myservice_build_1 -T --rm myservice /bin/sh -e -c 'pwd' : echo ran myservice without ansi output"
"compose --ansi never -f docker-compose.yml -p buildkite1111 -f docker-compose.buildkite-1-override.yml pull myservice : echo pulled myservice" \
"compose --ansi never -f docker-compose.yml -p buildkite1111 -f docker-compose.buildkite-1-override.yml up -d --scale myservice=0 myservice : echo started dependencies for myservice" \
"compose --ansi never -f docker-compose.yml -p buildkite1111 -f docker-compose.buildkite-1-override.yml run --name buildkite1111_myservice_build_1 -T --rm myservice /bin/sh -e -c 'pwd' : echo ran myservice without ansi output"

stub buildkite-agent \
"meta-data exists docker-compose-plugin-built-image-tag-myservice : exit 0" \
Expand Down
6 changes: 3 additions & 3 deletions tests/v1/run.bats
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,9 @@ cmd3"
export BUILDKITE_PLUGIN_DOCKER_COMPOSE_ANSI=false

stub docker-compose \
"--no-ansi -f docker-compose.yml -p buildkite1111 -f docker-compose.buildkite-1-override.yml pull myservice : echo pulled myservice" \
"--no-ansi -f docker-compose.yml -p buildkite1111 -f docker-compose.buildkite-1-override.yml up -d --scale myservice=0 myservice : echo started dependencies for myservice" \
"--no-ansi -f docker-compose.yml -p buildkite1111 -f docker-compose.buildkite-1-override.yml run --name buildkite1111_myservice_build_1 -T --rm myservice /bin/sh -e -c 'pwd' : echo ran myservice without ansi output"
"--ansi never -f docker-compose.yml -p buildkite1111 -f docker-compose.buildkite-1-override.yml pull myservice : echo pulled myservice" \
"--ansi never -f docker-compose.yml -p buildkite1111 -f docker-compose.buildkite-1-override.yml up -d --scale myservice=0 myservice : echo started dependencies for myservice" \
"--ansi never -f docker-compose.yml -p buildkite1111 -f docker-compose.buildkite-1-override.yml run --name buildkite1111_myservice_build_1 -T --rm myservice /bin/sh -e -c 'pwd' : echo ran myservice without ansi output"

stub buildkite-agent \
"meta-data exists docker-compose-plugin-built-image-tag-myservice : exit 0" \
Expand Down

0 comments on commit 7681d07

Please sign in to comment.