mirror of
https://github.com/jimeh/rbheap.git
synced 2026-02-19 12:56:46 +00:00
Add .travis.yml and .goreleaser.yml
This commit is contained in:
36
.goreleaser.yml
Normal file
36
.goreleaser.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
project_name: rbheapleak
|
||||
builds:
|
||||
- main: rbheapleak.go
|
||||
binary: rbheapleak
|
||||
flags: -a
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- darwin
|
||||
- freebsd
|
||||
- linux
|
||||
- windows
|
||||
goarch:
|
||||
- amd64
|
||||
- 386
|
||||
- arm
|
||||
goarm:
|
||||
- 6
|
||||
- 7
|
||||
archive:
|
||||
name_template: '{{ .ProjectName }}-{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm
|
||||
}}v{{ .Arm }}{{ end }}'
|
||||
format: tar.gz
|
||||
wrap_in_directory: true
|
||||
format_overrides:
|
||||
- goos: windows
|
||||
format: zip
|
||||
before:
|
||||
hooks:
|
||||
- make clean
|
||||
git:
|
||||
short_hash: true
|
||||
snapshot:
|
||||
name_template: dev-{{.Commit}}
|
||||
release:
|
||||
draft: false
|
||||
20
.travis.yml
Normal file
20
.travis.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
language: go
|
||||
|
||||
go:
|
||||
- "1.10"
|
||||
|
||||
install:
|
||||
- "curl -L https://github.com/golang/dep/raw/master/install.sh | sh"
|
||||
- "dep ensure"
|
||||
|
||||
script:
|
||||
- make test
|
||||
- make
|
||||
|
||||
deploy:
|
||||
- provider: script
|
||||
skip_cleanup: true
|
||||
script: curl -sL https://git.io/goreleaser | bash
|
||||
on:
|
||||
tags: true
|
||||
condition: $TRAVIS_OS_NAME = linux
|
||||
Reference in New Issue
Block a user