11 lines
226 B
Bash
Executable File
11 lines
226 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [ "$1" == "test" ]; then
|
|
reflex -r '\.go$' -s -d none -- sh -c 'go test ./...'
|
|
fi
|
|
|
|
reflex -r '\.go$' -s -d none -- sh -c 'go build -o ./cachet-monitor ./cli/ && ./cachet-monitor -c config.yml'
|
|
exit 0
|