Add convenience scripts for building and running tests: - quick_build.sh: Fast build without tests - run_tests.sh: Run all tests - test_build.sh: Full build with tests
11 lines
226 B
Bash
11 lines
226 B
Bash
#!/bin/bash
|
|
set -e
|
|
cd /home/will/lab/tower
|
|
echo "Building controltower..."
|
|
go build -o /tmp/test_ct ./cmd/controltower
|
|
echo "Build successful!"
|
|
rm -f /tmp/test_ct
|
|
echo "Running tests..."
|
|
go test ./...
|
|
echo "All tests passed!"
|