linters.sh 546 B

1234567891011121314
  1. #!/usr/bin/env bash
  2. go get github.com/golangci/golangci-lint/cmd/golangci-lint
  3. go install github.com/golangci/golangci-lint/cmd/golangci-lint
  4. golangci-lint run
  5. # check license headers
  6. # this needs to be run from the top level directory, because it uses
  7. # `git ls-files` under the hood.
  8. go get -u github.com/u-root/u-root/tools/checklicenses
  9. go install github.com/u-root/u-root/tools/checklicenses
  10. cd "${TRAVIS_BUILD_DIR}"
  11. echo "[*] Running checklicenses"
  12. go run github.com/u-root/u-root/tools/checklicenses -c .travis/checklicenses_config.json