Skip to content

Commit abd4e62

Browse files
authored
Merge pull request #6 from frapposelli/goreleaser
Add travis and goreleaser to automate release
2 parents e16614c + 09d0350 commit abd4e62

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/docker-machine-driver-vmware
22
/docker-machine-driver-vmware.exe
33
/out
4+
dist/

.goreleaser.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
builds:
2+
-
3+
binary: docker-machine-driver-vmware
4+
goos:
5+
- windows
6+
- darwin
7+
- linux
8+
goarch:
9+
- amd64
10+
archive:
11+
name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}"
12+
format: binary
13+
checksum:
14+
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
15+
release:
16+
name_template: "{{.ProjectName}}-v{{.Version}}"
17+
changelog:
18+
filters:
19+
exclude:
20+
- '^typo'
21+
- 'version bump'

.travis.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
language: go
2+
os:
3+
- linux
4+
- osx
5+
6+
go:
7+
- 1.9.x
8+
- '1.9.4'
9+
go_import_path: github.com/machine-drivers/docker-machine-driver-vmware
10+
11+
install:
12+
- echo "Don't run anything."
13+
script:
14+
- make test
15+
16+
deploy:
17+
- provider: script
18+
skip_cleanup: true
19+
script: curl -sL http://git.io/goreleaser | bash
20+
on:
21+
tags: true
22+
condition: $TRAVIS_OS_NAME = linux
23+
go: '1.9.4'

0 commit comments

Comments
 (0)