-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
25 lines (22 loc) · 1.24 KB
/
.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
language: go
before_install:
- go get github.com/mitchellh/gox
- go get github.com/inconshreveable/mousetrap
script:
- go get -t -v ./...
- diff -u <(echo -n) <(gofmt -d .)
- go vet $(go list ./... | grep -v /vendor/)
- go test -v -race ./...
- gox -os="linux darwin windows" -arch="amd64" -output="cobra-example.{{.OS}}.{{.Arch}}" -verbose ./...
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: F0jD3uT4Byf5m5XTT4WKxB5I/Y2rCgm0PiicVrv76sCsbHWZZB4yN0QmXSM5S6uNMDmxHw8xpLzJSFdF5EcME1pim8OVgOOfrCSKNpOEeCLm9bNO0+xxmJeL8e5S6AtokIkfTfg1uEJg+Q4fvKkNH7GoqfXmVzDOjSP9hZKSuS2DxNNanqekhez3BR6Z2lUTQqM87XP20//R7vLUS+Yf4PyHGwPHhEy1hcyCx+EHqtksAnVhsyWZTpwUWQAIJrTFUcw+TwqcM26SAY9sv3KP4qOHed8trjPZgfbwtojWoHn+13g8OTrS9NA69euG+ojuI8m9PBUmOR3pMwCiBgAzLK4VkjL1YCM3Z8afyYymy1BYpUopNqU7Htcw7MJfM4hBZg2kt+qT7KCkSeRZ10e+lkCzAOdJwJIkS+7tWW/IF3+i3rezHWnS2fmu7jBeCfHhbHYJ46GILLR0bIsSAyw9Met6E6aCvFDRlJxidDfALuRNJqeQSR5BoK7lrqeMqfM2VraS48uZqLzcNOh6QE2zwIJ5wvtH6cPQpNGcC1wDZHLZ2oKilgJ5h+QokVkbFQOxNQR2ZQTJPktA8b+5AfHWv5FLHiAfWkYvTQV2KExRUYX1egcsBsTGhNLhdCvYM++tEQNV6VO7qseqHB0vnqwpHovfDw2EMxtsi7oHsxv5YOk=
file:
- cobra-example.windows.amd64.exe
- cobra-example.darwin.amd64
- cobra-example.linux.amd64
on:
repo: dharmeshkakadia/cobra-example
tags: true