Skip to content
This repository was archived by the owner on Mar 30, 2020. It is now read-only.

Commit 6841747

Browse files
committed
travis with releases
1 parent 5901ff3 commit 6841747

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

.travis.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,20 @@ language: go
33
sudo: false
44

55
go:
6-
- 1.3
7-
- 1.4
86
- 1.5
9-
- tip
107

118
script:
129
- make full-test
10+
11+
before_deploy:
12+
- make packages
13+
14+
deploy:
15+
provider: releases
16+
api_key: $GITHUB_API_TOKEN
17+
file:
18+
- build/dockership_${TRAVIS_TAG}_darwin_amd64.tar.gz
19+
- build/dockership_${TRAVIS_TAG}_linux_amd64.tar.gz
20+
skip_cleanup: true
21+
on:
22+
tags: true

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ GOGET = $(GOCMD) get
2525
GOTEST = $(GOCMD) test
2626
BINDATA = go-bindata
2727

28+
ifneq ($(origin TRAVIS_TAG), undefined)
29+
VERSION := $(TRAVIS_TAG)
30+
endif
31+
2832
.PHONY: dependencies $(DEPENDENCIES) packages $(PACKAGES)
2933

3034
all: test build

http/static/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)