Skip to content

Commit

Permalink
Initial commit for release
Browse files Browse the repository at this point in the history
  • Loading branch information
RafPe committed Nov 26, 2018
1 parent 1d1125a commit f05582f
Show file tree
Hide file tree
Showing 6 changed files with 399 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Ignore vendor folder
vendor/*
26 changes: 26 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Build customization
builds:
-
binary: "{{ .ProjectName }}"
ldflags: -s -w -X main.appName={{ .ProjectName }} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.appVer={{.Tag}}
goos:
- windows
- darwin
- linux
goarch:
- amd64
archive:
name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}"
replacements:
darwin: mac
format: binary
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
release:
name_template: "{{.ProjectName}} v{{.Version}}"
changelog:
filters:
exclude:
- '[b|B]ump.*\sversion'
- '.*typo.*'
- '[V|v]ersion.*\sbump'
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# .travis.yml
language: go

# Only build tags
if: tag IS present

env:
- DEP_VERSION="0.5.0"

before_install:
# Download the binary to bin folder in $GOPATH
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
# Make the binary executable
- chmod +x $GOPATH/bin/dep

install:
- dep ensure

# calls goreleaser
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
70 changes: 70 additions & 0 deletions Gopkg.lock

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

38 changes: 38 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Gopkg.toml example
#
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true


[[constraint]]
name = "github.com/aws/aws-sdk-go"
version = "1.15.82"

[[constraint]]
name = "github.com/urfave/cli"
version = "1.20.0"

[prune]
go-tests = true
unused-packages = true
Loading

0 comments on commit f05582f

Please sign in to comment.