mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-23 22:34:04 +00:00
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
VERSION=0.2.1
|
|
|
|
all: deps fmt combined
|
|
|
|
combined:
|
|
go install .
|
|
|
|
release: tag release-deps dockerhub
|
|
gox -ldflags "-X main.version=${VERSION}" -output="build/{{.Dir}}_{{.OS}}_{{.Arch}}" .
|
|
|
|
fmt:
|
|
go fmt ./...
|
|
|
|
deps:
|
|
go get github.com/mailhog/MailHog-Server
|
|
go get github.com/mailhog/MailHog-UI
|
|
go get github.com/mailhog/mhsendmail
|
|
cd ../MailHog-UI; make bindata
|
|
go get github.com/mailhog/http
|
|
go get github.com/ian-kent/go-log/log
|
|
go get github.com/ian-kent/envconf
|
|
go get github.com/ian-kent/goose
|
|
go get github.com/ian-kent/linkio
|
|
go get github.com/jteeuwen/go-bindata/...
|
|
go get gopkg.in/mgo.v2
|
|
# added to fix travis issues
|
|
go get golang.org/x/crypto/bcrypt
|
|
|
|
test-deps:
|
|
go get github.com/smartystreets/goconvey
|
|
|
|
release-deps:
|
|
go get github.com/mitchellh/gox
|
|
|
|
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:
|
|
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}
|
|
|
|
rocker: rocker-deps
|
|
rocker build --no-cache
|
|
|
|
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
|