-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from allegro/develop
Release 1.0.0.
- Loading branch information
Showing
55 changed files
with
1,722 additions
and
2,353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ TESTARGS?=-race | |
CURRENT_DIR = $(shell pwd) | ||
SOURCEDIR = $(CURRENT_DIR) | ||
SOURCES := $(shell find $(SOURCEDIR) -name '*.go') | ||
VERSION=$(shell cat .goxc.json | python -c "import json,sys;obj=json.load(sys.stdin);print obj['PackageVersion'];") | ||
TEMPDIR := $(shell mktemp -d) | ||
|
||
all: deps build | ||
|
||
|
@@ -24,10 +26,34 @@ test: deps $(SOURCES) | |
PATH=$(CURRENT_DIR)/bin:$(PATH) go test $(PACKAGES) $(TESTARGS) | ||
go vet $(PACKAGES) | ||
|
||
release: | ||
@rm -rf dist | ||
FPM-exists: | ||
@fpm -v || \ | ||
(echo >&2 "FPM must be installed on the system. See https://github.com/jordansissel/fpm"; false) | ||
|
||
deb: FPM-exists build | ||
mkdir -p dist/$(VERSION)/ | ||
cd dist/$(VERSION)/ && \ | ||
fpm -s dir \ | ||
-t deb \ | ||
-n marathon-consul \ | ||
-v $(VERSION) \ | ||
--url="https://github.com/allegro/marathon-consul" \ | ||
--vendor=Allegro \ | ||
--maintainer="Allegro Group <[email protected]>" \ | ||
--description "Marathon-consul service (performs Marathon Tasks registration as Consul Services for service discovery) Marathon-consul takes information provided by the Marathon event bus and forwards it to Consul agents. It also re-syncs all the information from Marathon to Consul on startup and repeats it with given interval." \ | ||
--deb-priority optional \ | ||
--workdir $(TEMPDIR) \ | ||
--license "Apache License, version 2.0" \ | ||
../../bin/marathon-consul=/usr/bin/marathon-consul \ | ||
../../debian/marathon-consul.service=/etc/systemd/system/marathon-consul.service \ | ||
../../debian/marathon-consul.upstart=/etc/init/marathon-consul.conf \ | ||
../../debian/config.json=/etc/marathon-consul.d/config.json | ||
|
||
release: deb | ||
@go get github.com/laher/goxc | ||
goxc | ||
|
||
bump: | ||
goxc bump | ||
git add .goxc.json | ||
git commit -m "Bumped version" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.