Skip to content

Commit

Permalink
Optimize Bazel CI steps
Browse files Browse the repository at this point in the history
  • Loading branch information
drigz committed Nov 7, 2018
1 parent ff06a4d commit c286256
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,16 @@ jobs:
- run: dep ensure --vendor-only
- run: go get golang.org/x/lint/golint
- run: make lint
bazel_build:
bazel_lint_and_test:
docker:
- image: l.gcr.io/google/bazel:latest
working_directory: /go/src/github.com/grpc-ecosystem/grpc-gateway
steps:
- checkout
- run: 'bazel --batch --output_base=$HOME/.cache/_grpc_gateway_bazel run //:buildifier_check ||
- run: 'bazel --output_base=$HOME/.cache/_grpc_gateway_bazel run //:buildifier_check ||
(echo "Bazel files not formatted, please run \`bazel run :buildifier\`"; exit 1)'
- run: bazel --batch --output_base=$HOME/.cache/_grpc_gateway_bazel run //:gazelle_diff
- run: bazel --batch --output_base=$HOME/.cache/_grpc_gateway_bazel build //...
bazel_test:
docker:
- image: l.gcr.io/google/bazel:latest
working_directory: /go/src/github.com/grpc-ecosystem/grpc-gateway
steps:
- checkout
- run: bazel --batch --output_base=$HOME/.cache/_grpc_gateway_bazel test --test_output=errors --features=race //...
- run: bazel --output_base=$HOME/.cache/_grpc_gateway_bazel run //:gazelle_diff
- run: bazel --output_base=$HOME/.cache/_grpc_gateway_bazel test --test_output=errors --features=race //...
build_linux_release:
docker:
- image: jfbrandhorst/grpc-gateway-build-env
Expand Down Expand Up @@ -153,8 +146,7 @@ workflows:
- node_test
- generate
- lint
- bazel_build
- bazel_test
- bazel_lint_and_test
- build_linux_release:
filters:
branches:
Expand Down

0 comments on commit c286256

Please sign in to comment.