-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
34 lines (34 loc) · 994 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# https://docs.travis-ci.com/user/languages/go/
language: go
sudo: false
go:
- 1.11.x
install:
- go get golang.org/x/lint/golint
- go get github.com/golang/dep/cmd/dep
- dep ensure
script:
- golint .
- go build
- ./geco
matrix:
allow_failures:
- go: tip
before_deploy:
- go get github.com/mitchellh/gox
- gox -os="linux darwin" -arch="amd64" -output="dist/{{.Dir}}_{{.OS}}_{{.Arch}}/{{.Dir}}"
- cd dist && zip geco_linux_amd64.zip geco_linux_amd64/geco && cd -
- cd dist && zip geco_darwin_amd64.zip geco_darwin_amd64/geco && cd -
deploy:
provider: releases
api_key:
secure: ZT3mJoBYUi7aabfTFNoZ12z0K54Ff0u7BofYIJrYyEGT4HV8b6qc4hu8AffZwqKT6q9Y0r8kt6CFfEHGrkDLs6p5DDMfv75BIgzvzmuR8aqIFGnvmGgZF2seJjN0P+jQv44nrPTxlVKruu/Gm7NrZK+CT7L6MC9y96Mk8dr02zs=
file:
- dist/geco_linux_amd64.zip
- dist/geco_darwin_amd64.zip
skip_cleanup: true
on:
repo: minimum2scp/geco
tags: true
branch: master
condition: "${TRAVIS_GO_VERSION} = 1.11.x"