Skip to content

Commit

Permalink
Make Github Release from Travis. (#174)
Browse files Browse the repository at this point in the history
Update version with make. To update version just run
`make version v=<version>` e.g., `make version v=1.2.0`.
  • Loading branch information
janisz authored Feb 13, 2017
1 parent f9d3417 commit 84538df
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ before_install:
script:
- make check
- goveralls -coverprofile=coverage/gover.coverprofile -service travis-ci
deploy:
provider: releases
api_key:
secure: Y+9PJcw/c5S7DOd49gGA83T7vcX30ytFAxAmWdWCTMpzQYW+AZux0rB4bGhiJTVuzsd7/bbVM/DmNSQbEfGGLPOrcgba4IpoLsy22UUClVGs5511VfqR9INInEchYKpJQJr6XSXa/iFOwblPOXXHiK+eGJKWBD1ZEWhxxG/uqgOjQBUyfOuQd7FzM6QhwJlYHlUHkXmEr4iiAwNIQ8ucWArNClhlhHXd91TzsTB7SD2xYufRIwwBZV9HPHAvpLyx3OWMnofXihXJ9QTBwEkRF7HYF9q1D+TnLWeAfyFJUN4NTWvbNgSBdJV7PlSmShb2WxaaEtdH0xCZ1Rg6SkbX14yjKaMUKL2dD4F3uNNtA1BV5HceBo1w5rfBNMsvBwA+Xx//+pDFZCqyHor/5bR418otHff5Gxv2Pf2bbBFk/SGt+7JmaizHBvWGrYSQrpXJRqcejYUf3XBt0rdV40QWCJt6rUUu0ar0349zRovN/CpiqGPqJ4GyQvoaaRQ8Sig7+gBTW9YSuvxmX/MqGFIw4uAvp+kNAGuxTHro0VVa5E5qLA3qmBYlZOcglolimBoSJzznVo2qbiNZadjIoRKn5yJk5vQ7LYUY3ZY3j98dabngY73H1zLglHG4tOb1iWwiZVPZJETYvr3CTOtgQRnw4VHmrzldeQetBiDV6Ibhwcc=
file_glob: true
file: dist/$TRAVIS_TAG/marathon-consul_*
on:
tags: true
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ deps:
@mkdir -p $(COVERAGEDIR)
@which gover > /dev/null || \
(go get github.com/modocache/gover)
@which goxc > /dev/null || \
(go get github.com/laher/goxc)

build-deps: deps format test check
@mkdir -p bin/
Expand Down Expand Up @@ -79,13 +81,13 @@ deb: FPM-exists build
../../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
release: deb deps
goxc

bump:
goxc bump
version: deps
goxc -wc -pv=$(v)
git add .goxc.json
git commit -m "Bumped version"
git commit -m "Release $(v)"
git tag $(v)

.PHONY: all bump build release deb

0 comments on commit 84538df

Please sign in to comment.