update makefile and travis.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
5b20181474
commit
65d48331a5
|
@ -25,9 +25,10 @@ before_install:
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- export GO15VENDOREXPERIMENT=1
|
- export GO15VENDOREXPERIMENT=1
|
||||||
- glide install
|
- go get -u github.com/golang/lint/golint
|
||||||
- go get golang.org/x/tools/cmd/cover
|
- go get golang.org/x/tools/cmd/cover
|
||||||
- go get github.com/mattn/goveralls
|
- go get github.com/mattn/goveralls
|
||||||
|
- make install
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make coverage
|
- make coverage
|
||||||
|
|
10
Makefile
10
Makefile
|
@ -66,17 +66,17 @@ endif
|
||||||
docker tag $(PRODUCTION_IMAGE):latest $(DEPLOY_ACCOUNT)/$(PRODUCTION_IMAGE):$(tag)
|
docker tag $(PRODUCTION_IMAGE):latest $(DEPLOY_ACCOUNT)/$(PRODUCTION_IMAGE):$(tag)
|
||||||
docker push $(DEPLOY_ACCOUNT)/$(PRODUCTION_IMAGE):$(tag)
|
docker push $(DEPLOY_ACCOUNT)/$(PRODUCTION_IMAGE):$(tag)
|
||||||
|
|
||||||
bundle:
|
install:
|
||||||
glide install
|
@glide install
|
||||||
|
|
||||||
bundle_update:
|
update:
|
||||||
glide update --all-dependencies --resolve-current
|
@glide up
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
@echo $(TARGETS_NOVENDOR) | xargs go fmt
|
@echo $(TARGETS_NOVENDOR) | xargs go fmt
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
golint gorush
|
@golint -set_exit_status=1 gorush/
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -rf build.tar.gz gorush.tar.gz bin/* coverage.txt gorush.tar.gz gorush/gorush.db storage/boltdb/gorush.db
|
-rm -rf build.tar.gz gorush.tar.gz bin/* coverage.txt gorush.tar.gz gorush/gorush.db storage/boltdb/gorush.db
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
hash: d182f8dc3162313af09e706a0ba4901218d9ccde609ee7d39c6aae5e891f20ee
|
hash: d182f8dc3162313af09e706a0ba4901218d9ccde609ee7d39c6aae5e891f20ee
|
||||||
updated: 2016-07-10T15:59:10.549227418+08:00
|
updated: 2016-07-19T15:42:04.799126082+08:00
|
||||||
imports:
|
imports:
|
||||||
- name: github.com/appleboy/gorush
|
- name: github.com/appleboy/gorush
|
||||||
version: def178ca0ec2106752c3b4909d99c968567a75ee
|
version: 5b2018147493092e5f15f2f9e42142acf0eebc51
|
||||||
subpackages:
|
subpackages:
|
||||||
- config
|
- config
|
||||||
- gorush
|
- gorush
|
||||||
|
@ -48,9 +48,11 @@ imports:
|
||||||
- name: github.com/Sirupsen/logrus
|
- name: github.com/Sirupsen/logrus
|
||||||
version: 4b6ea7319e214d98c938f12692336f7ca9348d6b
|
version: 4b6ea7319e214d98c938f12692336f7ca9348d6b
|
||||||
- name: github.com/stretchr/testify
|
- name: github.com/stretchr/testify
|
||||||
version: d77da356e56a7428ad25149ca77381849a6a5232
|
version: f390dcf405f7b83c997eac1b06768bb9f44dec18
|
||||||
subpackages:
|
subpackages:
|
||||||
- assert
|
- assert
|
||||||
|
- suite
|
||||||
|
- require
|
||||||
- name: github.com/thoas/stats
|
- name: github.com/thoas/stats
|
||||||
version: 69e3c072eec2df2df41afe6214f62eb940e4cd80
|
version: 69e3c072eec2df2df41afe6214f62eb940e4cd80
|
||||||
- name: golang.org/x/crypto
|
- name: golang.org/x/crypto
|
||||||
|
|
Loading…
Reference in New Issue