Add gofmt to watchdog

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis
2017-09-13 08:32:37 -07:00
parent b9be8293a8
commit f6c14a70ec
2 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,9 @@ COPY requesthandler_test.go .
#COPY requestHandler.go .
COPY types types
# Run a gofmt and exclude all vendored code.
RUN gofmt -l -d $(find . -type f -name '*.go' -not -path "./vendor/*")
RUN go test
# Stripping via -ldflags "-s -w"

View File

@ -11,9 +11,10 @@ else
fi
docker create --name buildoutput functions/watchdog:build echo
docker cp buildoutput:/go/src/github.com/alexellis/faas/watchdog/watchdog ./fwatchdog
docker cp buildoutput:/go/src/github.com/alexellis/faas/watchdog/watchdog ./fwatchdog
docker cp buildoutput:/go/src/github.com/alexellis/faas/watchdog/watchdog-armhf ./fwatchdog-armhf
docker cp buildoutput:/go/src/github.com/alexellis/faas/watchdog/watchdog.exe ./fwatchdog.exe
docker rm buildoutput