Don't trust travis go

This commit is contained in:
Philippe Lafoucrière 2015-10-15 14:18:23 -04:00
parent a35e2a3c7a
commit 46c831b8e9
2 changed files with 2 additions and 4 deletions

View File

@ -8,11 +8,9 @@ clean:
rm -f migrate
test:
go get -t -v ./...
$(DCR) go-test
build:
go get -v -t
$(DCR) go-build
release: test build docker-build docker-push

View File

@ -6,14 +6,14 @@ go: &go
- ./migrations:/migrations
go-test:
<<: *go
command: go test -v ./...
command: sh -c 'go get -t -v ./... && go test -v ./...'
links:
- postgres
- mysql
- cassandra
go-build:
<<: *go
command: go build -ldflags '-s'
command: sh -c 'go get -v && go build -ldflags ''-s'' -o migrater'
environment:
CGO_ENABLED: 0
postgres: