From 30ce48dc32ee330a3edaf19d3037b05997392566 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 22 Mar 2015 12:58:32 +0100 Subject: [PATCH] Add '-s' ldflag and output size to travis tests --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index dc5b06f42..e448ac2bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,7 @@ install: script: - gofmt -l *.go */*.go */*/*.go - test -z "$(gofmt -l *.go */*.go */*/*.go)" - - go build ./... + - go build -ldflags "-s" ./... + - echo "binary size: $(stat --printf='%s' cmd/restic/restic)" - go test ./... - ./testsuite.sh