build.sh 350 B

1234567891011121314151617
  1. #!/bin/bash
  2. #
  3. # Build file to set up and run tests
  4. set -ex
  5. # Install the latest Bazel version available
  6. use_bazel.sh latest
  7. bazel version
  8. # Change to repo root
  9. cd $(dirname $0)/../../..
  10. git submodule update --init --recursive
  11. bazel test :build_files_updated_unittest :protobuf_test --copt=-Werror --host_copt=-Werror
  12. cd examples
  13. bazel build :all