Merge pull request #278 from zryfish/change_travis

change travis.yml
This commit is contained in:
zryfish
2019-01-21 17:49:54 +08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ before_install:
before_script:
- dep ensure -v
- docker --version
- dep ensure -v
script:
- make fmt-check && make build

View File

@@ -92,7 +92,7 @@ build: fmt
$(call get_build_flags)
$(RUN_IN_DOCKER) time go install -ldflags '$(BUILD_FLAG)' $(TRAG.Gopkg)/cmd/...
mv ./tmp/bin/cmd ./tmp/bin/$(TRAG.Name)
@docker build -t $(TRAG.Org)/$(TRAG.Name) -f ./Dockerfile.dev ./tmp
@docker build -t $(TRAG.Org)/$(TRAG.Name) -f - ./tmp < ./Dockerfile.dev
@docker image prune -f 1>/dev/null 2>&1
@echo "build done"