2016-03-20 17:19:28 +00:00
|
|
|
VERSION=0.2.0
|
2015-04-19 17:06:05 +00:00
|
|
|
|
2014-12-24 16:52:53 +00:00
|
|
|
all: deps fmt combined
|
2014-11-23 15:10:55 +00:00
|
|
|
|
|
|
|
combined:
|
2014-12-24 18:34:24 +00:00
|
|
|
go install .
|
2014-04-28 00:42:05 +00:00
|
|
|
|
2016-03-13 19:16:14 +00:00
|
|
|
release: tag release-deps dockerhub
|
2014-12-24 18:34:24 +00:00
|
|
|
gox -output="build/{{.Dir}}_{{.OS}}_{{.Arch}}" .
|
2014-04-28 00:42:05 +00:00
|
|
|
|
2014-10-29 15:00:04 +00:00
|
|
|
fmt:
|
|
|
|
go fmt ./...
|
|
|
|
|
2014-04-28 00:42:05 +00:00
|
|
|
deps:
|
2014-12-24 16:52:53 +00:00
|
|
|
go get github.com/mailhog/MailHog-Server
|
|
|
|
go get github.com/mailhog/MailHog-UI
|
2015-05-26 21:58:57 +00:00
|
|
|
go get github.com/mailhog/mhsendmail
|
2015-01-04 12:54:07 +00:00
|
|
|
cd ../MailHog-UI; make bindata
|
2014-12-24 17:13:51 +00:00
|
|
|
go get github.com/mailhog/http
|
2014-10-29 15:00:04 +00:00
|
|
|
go get github.com/ian-kent/go-log/log
|
2014-10-29 16:59:59 +00:00
|
|
|
go get github.com/ian-kent/envconf
|
2014-12-21 09:18:19 +00:00
|
|
|
go get github.com/ian-kent/goose
|
2014-12-24 13:21:21 +00:00
|
|
|
go get github.com/ian-kent/linkio
|
2014-04-28 00:42:05 +00:00
|
|
|
go get github.com/jteeuwen/go-bindata/...
|
2016-07-07 20:34:24 +00:00
|
|
|
go get gopkg.in/mgo.v2
|
2014-12-02 21:48:36 +00:00
|
|
|
# added to fix travis issues
|
2015-05-27 17:08:44 +00:00
|
|
|
go get golang.org/x/crypto/bcrypt
|
2014-04-28 00:42:05 +00:00
|
|
|
|
|
|
|
test-deps:
|
2014-11-23 14:08:53 +00:00
|
|
|
go get github.com/smartystreets/goconvey
|
2014-04-28 00:42:05 +00:00
|
|
|
|
|
|
|
release-deps:
|
|
|
|
go get github.com/mitchellh/gox
|
|
|
|
|
2015-04-19 17:06:05 +00:00
|
|
|
pull:
|
|
|
|
git pull
|
|
|
|
cd ../data; git pull
|
|
|
|
cd ../http; git pull
|
|
|
|
cd ../MailHog-Server; git pull
|
|
|
|
cd ../MailHog-UI; git pull
|
|
|
|
cd ../smtp; git pull
|
|
|
|
cd ../storage; git pull
|
|
|
|
|
|
|
|
tag:
|
2016-03-13 19:25:08 +00:00
|
|
|
git tag -a -m 'v${VERSION}' v${VERSION} && git push origin v${VERSION}
|
|
|
|
cd ../data; git tag -a -m 'v${VERSION}' v${VERSION} && git push origin v${VERSION}
|
|
|
|
cd ../http; git tag -a -m 'v${VERSION}' v${VERSION} && git push origin v${VERSION}
|
|
|
|
cd ../MailHog-Server; git tag -a -m 'v${VERSION}' v${VERSION} && git push origin v${VERSION}
|
|
|
|
cd ../MailHog-UI; git tag -a -m 'v${VERSION}' v${VERSION} && git push origin v${VERSION}
|
|
|
|
cd ../smtp; git tag -a -m 'v${VERSION}' v${VERSION} && git push origin v${VERSION}
|
|
|
|
cd ../storage; git tag -a -m 'v${VERSION}' v${VERSION} && git push origin v${VERSION}
|
2015-04-19 17:06:05 +00:00
|
|
|
|
2016-03-13 19:12:15 +00:00
|
|
|
rocker: rocker-deps
|
|
|
|
rocker build
|
|
|
|
|
|
|
|
rocker-deps:
|
|
|
|
go get github.com/grammarly/rocker
|
|
|
|
|
|
|
|
dockerhub: rocker
|
|
|
|
docker push mailhog/mailhog
|
|
|
|
|
|
|
|
.PNONY: all combined release fmt deps test-deps release-deps pull tag rocker rocker-deps
|