Skip to content

Commit a7bb167

Browse files
committed
Replace build.sh with release artifact creation via goreleaser
1 parent 1ad97c3 commit a7bb167

File tree

3 files changed

+61
-37
lines changed

3 files changed

+61
-37
lines changed

.goreleaser.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# .goreleaser.yml
2+
# Build customization
3+
builds:
4+
- binary: dt
5+
goos:
6+
- windows
7+
- darwin
8+
- linux
9+
goarch:
10+
- amd64
11+
- 386
12+
# Archive customization
13+
archive:
14+
wrap_in_directory: true
15+
format: tar.gz
16+
format_overrides:
17+
- goos: windows
18+
format: zip
19+
files:
20+
- LICENSE.txt
21+
- README.md

.travis.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,42 @@
11
language: go
2+
3+
git:
4+
depth: false
5+
go:
6+
- 1.9.5
7+
- "1.10.1"
8+
os:
9+
- linux
10+
- osx
11+
- windows
12+
213
script: go install
14+
15+
addons:
16+
apt:
17+
packages:
18+
# needed for the nfpm pipe:
19+
- rpm
20+
# needed for the snap pipe:
21+
- snapcraft
22+
23+
env:
24+
# needed for the snap pipe:
25+
- PATH=/snap/bin:$PATH
26+
27+
install:
28+
# needed for the snap pipe:
29+
- sudo snap install snapcraft --classic
30+
31+
# needed for the docker pipe
32+
services:
33+
- docker
34+
35+
# calls goreleaser
36+
deploy:
37+
- provider: script
38+
skip_cleanup: true
39+
script: curl -sL https://git.io/goreleaser | bash
40+
on:
41+
tags: true
42+
condition: $TRAVIS_OS_NAME = linux

build.sh

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)