Skip to content

Commit

Permalink
allow interactive debugging of tests in the updater (#9250)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecoffman authored Mar 8, 2024
1 parent 9bd7890 commit 9e7d9b3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions script/ci-test-updater
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,21 @@ do
rspec_args+=("${arg#updater/}")
done

# Check if we are in a CI environment
if [ -z "$CI" ]; then
docker_run_args="-it"
else
docker_run_args=""
fi

# Previously the updater image contained all ecosystems. Now the ecosystems are broken apart,
# but we still have some tests that need to run against other ecosystems. So by mounting the
# other ecosystems with -v into the updater image we can still run those tests.
script/build bundler

# shellcheck disable=SC2086
docker run --env DEPENDABOT_TEST_ACCESS_TOKEN \
$docker_run_args \
--pull never \
--env VCR \
--rm \
Expand Down

0 comments on commit 9e7d9b3

Please sign in to comment.