update travis to include tests

This commit is contained in:
Henrique Dias 2017-07-25 12:02:51 +01:00
parent e6e1984c47
commit 2ca408d14f
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
1 changed files with 1 additions and 3 deletions

View File

@ -14,10 +14,8 @@ install:
- go get github.com/tcnksm/ghr
script:
- sed -i 's/\_ \"github.com\/mholt\/caddy\/caddyhttp\"/\_ \"github.com\/mholt\/caddy\/caddyhttp\"\n\_ \"github.com\/hacdias\/filemanager\/caddy\/filemanager\"/g' $GOPATH/src/github.com/mholt/caddy/caddy/caddymain/run.go
- go build -o binary github.com/mholt/caddy/caddy
- go build github.com/hacdias/filemanager
- ineffassign .
- go test ./... -timeout 30s -tags
- cd cmd/filemanager
- mkdir dist
- gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"