Skip to content

Commit

Permalink
Merge pull request #10 from lovoo/release
Browse files Browse the repository at this point in the history
Travis Build/Release
  • Loading branch information
0x46616c6b authored Oct 5, 2016
2 parents 053bd0a + 5df86f8 commit 2548ad8
Show file tree
Hide file tree
Showing 88 changed files with 21,591 additions and 148 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: go
go:
- 1.7

script:
- make build
- make test

before_deploy: make release-build

deploy:
provider: releases
api_key:
secure: Qa1P/aaFUOfSkkolxDg8848GRTgE9CKT/hYMJq11dz0zbmdvyCqMUzsaLuFeeYEwvyvZ6hlCarVopt2+6o/jbJZ8xcTncujXAqfxM6dtf9UoCDUwDtCu8OJOe/RgSm+vfcu3dKGKmOa70wP5Y2nKVaaIv76nXbqpt1nlsuJHv/5Vh3FiNdgAKautmhT5lFjJoFgPafFMAsBJGsqfivxJCi7B7Qt+a+OulR4n3eMMwANtqFOgu405QhpQNHbITLZVCRcBd++BWx00Q0tDUgw5seCzK57dzqPV6EUCbAp0Flf3GcITVg03YVdJ05KFp6I2EWBhpkUaYeC0/IBDFx7y675RcoJSyUjTheyoJ5eHxywkv4GS7ygkhOkux8Fg7JPMULaDrMAEW7z7+wuFGClfOCbOWX4Yf3zwOPc2SclHJ5d69LvsJOIZepBgW5H7Erj+pmfISGteCpJVSrGdH62ztNmzfE5PcJUAozdthEcoZIUea5K5b6VEzZbv5N+wy/Do3FU8yCN/K4JJk+pFq4DwSCj02bCA6Y/YffNvybcerZMDGcA8FxrXlDMDILfE+ZXRjUeomUY+8WkQRRzVxroGWV9SHV5H/KTVSRmNLbBiT7561Y3SE0JR+yt0Awrjamaaki0EGSrkaDYQCIYXU9Yr7JZFl1gtKUP0XSA+17zuMo0=
file:
- build/nsq_exporter_darwin_amd64
- build/nsq_exporter_freebsd_386
- build/nsq_exporter_freebsd_amd64
- build/nsq_exporter_linux_386
- build/nsq_exporter_linux_amd64
- build/nsq_exporter_linux_arm
- build/nsq_exporter_linux_arm64
- build/nsq_exporter_windows_386.exe
- build/nsq_exporter_windows_amd64.exe
on:
repo: lovoo/nsq_exporter
tags: true
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015, LOVOO GmbH
Copyright (c) 2015-2016, LOVOO GmbH
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
36 changes: 20 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
# Copyright 2015 The Prometheus Authors
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
BUILD_DIR = build

VERSION := 0.1.0
TARGET := nsq_exporter
GOFLAGS := -ldflags "-X main.Version=$(VERSION)"
GO = go
GOX = gox
GOX_ARGS = -output="$(BUILD_DIR)/{{.Dir}}_{{.OS}}_{{.Arch}}" -osarch="linux/amd64 linux/386 linux/arm linux/arm64 darwin/amd64 freebsd/amd64 freebsd/386 windows/386 windows/amd64"

include Makefile.COMMON
.PHONY: build
build:
$(GO) build -o $(BUILD_DIR)/nsq_exporter .

.PHONY: clean
clean:
rm -R $(BUILD_DIR)/* || true

.PHONY: test
test:
$(GO) test ./...

.PHONY: release-build
release-build:
@go get -u github.com/mitchellh/gox
@$(GOX) $(GOX_ARGS) github.com/lovoo/nsq_exporter
131 changes: 0 additions & 131 deletions Makefile.COMMON

This file was deleted.

20 changes: 20 additions & 0 deletions vendor/github.com/beorn7/perks/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2548ad8

Please sign in to comment.