File tree 3 files changed +11
-5
lines changed
3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 12
12
13
13
# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
14
14
.glide /
15
+ dist /
Original file line number Diff line number Diff line change @@ -2,26 +2,29 @@ language: go
2
2
3
3
go :
4
4
- 1.8.x
5
- - tip
6
5
7
6
install :
8
7
- go get -t ./...
9
8
- go get -u gopkg.in/alecthomas/gometalinter.v1
10
9
- gometalinter.v1 --install --force
10
+ - go get -u github.com/mitchellh/gox
11
11
12
12
script :
13
+ - export BUILD_VERSION=${TRAVIS_TAG:-0.0.0-dev}+${TRAVIS_BUILD_NUMBER}.${TRAVIS_COMMIT:0:7}
13
14
- gometalinter.v1 --vendor -t --vendored-linters --deadline=2m --config .gometalinter.json ./...
14
15
- go test -v ./...
15
- - CGO_ENABLED=0 go build -o asciize --ldflags "-extldflags \"-static\" -X main.BuildVersion=${TRAVIS_TAG:-0.0.0-dev}+${TRAVIS_BUILD_NUMBER}.${TRAVIS_COMMIT:0:7}" ./cmd/asciize
16
- - sha1sum asciize > asciize.sha1
16
+ - gox -verbose -arch="386 amd64" -os="linux darwin freebsd openbsd netbsd solaris windows" -ldflags="-v -w -X main.BuildVersion=${BUILD_VERSION}" -output="dist/{{.OS}}_{{.Arch}}/asciize" ./cmd/asciize
17
+ - mv -v dist asciize-${BUILD_VERSION}
18
+ - tar zcvf asciize-${BUILD_VERSION}.tar.gz asciize-${BUILD_VERSION}
19
+ - sha1sum asciize-${BUILD_VERSION}.tar.gz > asciize-${BUILD_VERSION}.tar.gz.sha1
17
20
18
21
deploy :
19
22
provider : releases
20
23
api_key :
21
24
secure : WkKykF+H3MB8O3vTWo7QvDr6lQpsaTHJ2qNc+kTlHRSG6/j0KITfoPTDlh2pbcSgknYRbfoqoYPLEMCTWGXov3fnkcfjjdnpRjSgnMxu2UsmOa9/4Ogj4/XJ4Z4qDHAUazszg4OlEA41Zs9DSk5jmQEgMue2Nf5hziVX2kT8yFWAddGuLF2JfG6T0Xc/CaPcJ8RpiYEn7ghZ+XUT4o4QwMnbb/cxTwu4aJQ28ZaZcqthGG1ThP2TCTbbz/F9NQy7KsL1fiRknpTeFE7E0TDJ2qqElOP60FzxOnej0vTEZvqIyUaH0SjzNgE8Orbmvuz/cK3Odi/oPmf1AMylbtSpB/8Tp98GXN2HABldCsXasgO+DGeT1sBAlN2zdfV3duRfMfDvK6OXJFBaMfE6Mkexvb1grMlD5WzjigA/sKPciVwWRbee0g8pdH2HeE4D8k+IzxCbsDxjRqwZuvws4T2345z1FlFh1qZ5yFVWrsL9H72NaeS4kyQlKJP4XEVufhTgpqdnVT1/CboLXD9PBdc0mdcDPgc1HOIKJ3ky6YiN0Mb+pDGna3ax3RJRP35dyTSPRTFZXtxzM6v0544V2aYvvqPCo2dfv615YJktS7pwlqkOhvRJTPthmcybDVBrZHAdnd65uTFYes79pJLpAdMrW/OZ3vNWjhqOL83zqYS+6J8=
22
25
file :
23
- - asciize
24
- - asciize.sha1
26
+ - asciize-${BUILD_VERSION}.tar.gz
27
+ - asciize-${BUILD_VERSION}.tar.gz .sha1
25
28
skip_cleanup : true
26
29
on :
27
30
repo : marc-gr/asciize
Original file line number Diff line number Diff line change 10
10
11
11
## Installation
12
12
13
+ If you want to install the binary, just go to the [ releases] ( https://github.com/marc-gr/asciize/releases ) page and download the latest available for your system.
14
+
13
15
If you have go installed:
14
16
15
17
To install only the cli:
You can’t perform that action at this time.
0 commit comments