Eli Bendersky 8930aa53f3 Adding a basic sanity testing tool to run during 'build'.
The tool just runs 'go vet' for now; could do more later (like actually
run the examples and compare to some expected output)
2019-05-30 06:05:58 -07:00

11 lines
339 B
Bash
Executable File

#!/bin/bash
# Sanity testing of the examples.
set -eo pipefail
# go vet will attempt to build each example, making sure it compiles. It will
# also report known issues with the code. Disabling the -unreachable check
# because it will fire false positives for some examples demonstrating panics.
go vet -unreachable=false ./examples/...