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
205 B
Bash
11 lines
205 B
Bash
#!/bin/bash
|
|
cd /home/will/lab/tower
|
|
go build -o /tmp/controltower ./cmd/controltower 2>&1
|
|
if [ $? -eq 0 ]; then
|
|
echo "Build successful!"
|
|
rm -f /tmp/controltower
|
|
else
|
|
echo "Build failed!"
|
|
exit 1
|
|
fi
|