0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-07-29 00:09:56 +02:00
dendrite/build/scripts/build-test-lint.sh
Kegsay 24d8df664c
Fix #897 and shuffle directory around (#1054)
* Fix #897 and shuffle directory around

* Update find-lint

* goimports

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2020-05-21 14:40:13 +01:00

17 lines
365 B
Bash
Executable file

#! /bin/bash
# Builds, tests and lints dendrite, and should be run before pushing commits
set -eu
# Check that all the packages can build.
# When `go build` is given multiple packages it won't output anything, and just
# checks that everything builds.
echo "Checking that it builds..."
go build ./cmd/...
./scripts/find-lint.sh
echo "Testing..."
go test ./...