2018-11-30 21:47:10 -08:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
|
|
|
|
|
# Ensure the repository is clean after code generation.
|
|
|
|
|
./script/generate
|
|
|
|
|
test -z "$(git status --porcelain)"
|
2018-12-05 00:49:12 -08:00
|
|
|
|
2019-01-10 21:31:04 -08:00
|
|
|
# And it's still clean after asmfmt.
|
|
|
|
|
# Note: we want to confirm we agree with asmfmt without actually depending on it.
|
|
|
|
|
find . -name '*.s' | xargs asmfmt -w
|
|
|
|
|
test -z "$(git status --porcelain)"
|
|
|
|
|
|
2018-12-05 00:49:12 -08:00
|
|
|
# Run suite of golangci-lint checks.
|
2019-01-13 10:12:52 -08:00
|
|
|
# (Provide examples directory explicitly since it is skipped by default.)
|
|
|
|
|
golangci-lint run ./... ./examples/...
|