pre-push 848 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/env bash
  2. # Copyright Materialize, Inc. and contributors. All rights reserved.
  3. #
  4. # Use of this software is governed by the Business Source License
  5. # included in the LICENSE file at the root of this repository.
  6. #
  7. # As of the Change Date specified in that file, in accordance with
  8. # the Business Source License, use of this software will be governed
  9. # by the Apache License, Version 2.0.
  10. #
  11. # pre-push — quickly look for errors that will fail in CI.
  12. set -euo pipefail
  13. . misc/shlib/shlib.bash
  14. # this runs all of lint-fast.sh
  15. try bin/lint
  16. # part of lint-slow.sh because it requires building code
  17. try cargo clippy --all-targets -- -D warnings
  18. # part of lint-slow.sh because it requires building code
  19. try bin/doc --no-deps
  20. # part of lint-slow.sh because it requires building code
  21. try bin/doc --document-private-items
  22. try_status_report