ci: use CircleCI commands (#32745)

When we needed to run multiple commands in a reusable fashion, we needed to make a giant run block with multiple things inside. Using custom commands gives us a better way to do this.

See https://circleci.com/docs/2.0/reusing-config/#authoring-reusable-commands for more info.

PR Close #32745
This commit is contained in:
Filipe Silva
2019-09-18 16:22:50 +01:00
committed by atscott
parent 1115961892
commit 296954041e
2 changed files with 200 additions and 206 deletions

View File

@ -26,12 +26,6 @@ Add-Content $profile $bazelVersionGlobalVar
# TODO: is this really needed? Maybe there's a better way. It doesn't happen on Linux or on Codefresh.
git config --global --unset url.ssh://git@github.com.insteadOf
# Print node and yarn versions.
echo "Node version:"
node -v
echo "Yarn version:"
yarn -v
# These Bazel prereqs aren't needed because the CircleCI image already includes them.
# choco install nodejs --version 10.16.0 --no-progress