Skip to content

Commit

Permalink
Merge branch 'master' into f_gometalinter
Browse files Browse the repository at this point in the history
  • Loading branch information
jrasell committed Apr 23, 2018
2 parents 1cf6b1d + b6e80cd commit 9f57335
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 46 deletions.
72 changes: 72 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
project_name: levant

builds:
-
binary: levant
env:
- CGO_ENABLED=0

# GOOS list to build in.
# For more info refer to https://golang.org/doc/install/source#environment
goos:
- darwin
- freebsd
- linux

# GOARCH to build in.
# For more info refer to https://golang.org/doc/install/source#environment
goarch:
- amd64
- i386
- arm

# List of combinations of GOOS + GOARCH + GOARM to ignore.
# Default is empty.
ignore:
- goos: darwin
goarch: arm

# Custom ldflags template.
# This is parsed with Golang template engine and the following variables
# are available:
# - Date
# - Commit
# - Tag
# - Version (Tag with the `v` prefix stripped)
# The default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}`
# Date format is `2006-01-02_15:04:05`
ldflags: -s -w -X main.Name={{ .ProjectName }} -X main.Version={{.Version}} -X main.GitCommit={{.Commit}}"

archive:
# You can change the name of the archive.
# This is parsed with Golang template engine and the following variables
# are available:
# - ProjectName
# - Tag
# - Version (Tag with the `v` prefix stripped)
# - Os
# - Arch
# - Arm (ARM version)
# The default is `{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}`
name_template: "{{ .Os }}-{{ .Arch }}-{{ .ProjectName }}"

# Archive format. Valid options are `tar.gz`, `zip` and `binary`.
# If format is `binary` no archives are created and the binaries are instead uploaded directly.
# In that case name_template the below specified files are ignored.
# Default is `tar.gz`
format: binary

# Additional files/globs you want to add to the archive.
# Defaults are any files matching `LICENCE*`, `LICENSE*`,
# `README*` and `CHANGELOG*` (case-insensitive)
#files:
# - LICENSE
# - README.md
# - CHANGELOG.md

release:
# Repo in which the release will be created.
# Default is extracted from the origin remote URL.
github:
owner: jrasell
name: levant
17 changes: 8 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ sudo: false
dist: trusty
language: go
go:
- 1.9.x
- "1.10.x"
script:
- make tools
Expand All @@ -17,14 +16,14 @@ deploy:
api_key:
secure: T1ciNa/JVB5j36eq2j4sO3eh95y8+B1Y/cEvNz0jLBYCVKpFfcG34MCLBX1XWtUXeaDRWmtB7W5OfFjcHbE0WvkZxgq3CZSaSFvauiPFfSLRNRZi9SD+/p9HA71HRUySUggRbB9TheP3d4oBX0q+h0ZHzpgyUl+jmbVwn48h2iOgKKmBfvSHwv1HNfKvR9RYqS+DUQHHV524ObNvHdy3ERQ3vHzObfIvRfrBhWcURtqsLMPeS2UAWqXoCEUWtugUjEHqcDdAnuv85J5QiIIEbqXvOVl6Nq5xmKf6TfOSgegIZQ1/c/oEp+IcPVn0coOg7uWaV5SZMXfTgszxAs4neqG6rFco1fuIy8rYgtnp/JaPfjo9hEv5V0vR3ea9YfDzQ1BXLeD+e/EmYxWCs1IOg4IlbnhcSau+GyZTQuVrzXCGgEt25IU9NO3/qkng+ze1frN9NphaNtpSJw40NyfS9EL1tiLXfZgT7ZnJbkQCO0iD4Shi0pIWWpgMCF+e5VzDI38IFrdgCpVC4rhkG9Y2dRJbuXMYgZ3o4uboFKAY9oZnAcbimtP9rN+AbxvqSdDFuB1QXpIYaqD1cra5miOq9ok3/yGnOIQy1yEX1ruA/hRYKPNfvb+JpDqPQa4plkR8DPweWzzIl9ZuFxbXxn+MvYBYL2Eub30q3qL4Xnp5c+0=
file:
- pkg/darwin-386-levant
- pkg/darwin-amd64-levant
- pkg/freebsd-386-levant
- pkg/freebsd-amd64-levant
- pkg/freebsd-arm-levant
- pkg/linux-386-levant
- pkg/linux-amd64-levant
- pkg/linux-arm-levant
- dist/darwin-386-levant
- dist/darwin-amd64-levant
- dist/freebsd-386-levant
- dist/freebsd-amd64-levant
- dist/freebsd-arm-levant
- dist/linux-386-levant
- dist/linux-amd64-levant
- dist/linux-arm-levant
skip_cleanup: true
on:
tags: true
1 change: 1 addition & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ tools: ## Install the tools used to test and build
@echo "==> Installing build tools"
go get github.com/mitchellh/gox
go get github.com/alecthomas/gometalinter
go get github.com/goreleaser/goreleaser
gometalinter --install

build: ## Build Levant for development purposes
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Levant

[![Build Status](https://travis-ci.org/jrasell/levant.svg?branch=master)](https://travis-ci.org/jrasell/levant) [![Go Report Card](https://goreportcard.com/badge/github.com/jrasell/levant)](https://goreportcard.com/report/github.com/jrasell/levant) [![GoDoc](https://godoc.org/github.com/jrasell/levant?status.svg)](https://godoc.org/github.com/jrasell/levant)
[![Join the chat at https://gitter.im/levantdeployment/Lobby](https://badges.gitter.im/levantdeployment/Lobby/Lobby.svg)](https://gitter.im/levantdeployment/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Levant is an open source templating and deployment tool for [HashiCorp Nomad](https://www.nomadproject.io/) jobs that provides realtime feedback and detailed failure messages upon deployment issues.

Expand Down
37 changes: 0 additions & 37 deletions scripts/build.sh

This file was deleted.

0 comments on commit 9f57335

Please sign in to comment.