forked from whalebrew/whalebrew
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (26 loc) · 1.37 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
26
language: go
go:
- 1.12
install:
- go get -u golang.org/x/lint/golint
- go get golang.org/x/tools/cmd/goimports
- go get github.com/mitchellh/gox
script:
- FIXED=$(goimports ./... | wc -l); if [ $FIXED -gt 0 ]; then echo "goimports - $FIXED file(s) not formatted correctly, please run goimports to fix this." && exit 1; fi
- golint ./...
- export GO111MODULE=on
- travis_retry go mod download
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- script/build
- curl -s https://codecov.io/bash | bash
deploy:
provider: releases
api_key:
secure: "QUG18EkuFI9pp7O7sISqy7Oww4cNqUO0M8Dks78LLXaHfRjSqHwcu6qNDNeg0gPHLuK58roVS3kNb6wbwotoum8FzwuuATM27/KsOS4E6dtl0bTXVzklAMJsHwUqNJ5hdz0Su8wtwzHGQ1hXWWAx42VmcMNSd7EsBnBm7lrfegJlqjRBfKPEJiFjOaNILWQdElnsp/nGuYfe6A7c4mpRE0iXQ3GAGX8GPYrmwttO5IcWTedbw9mPFiFhfdOPKtYThXYqYf+gfquLvzIXncEOlpLjylU91OzB32DR5IAV9HmMsuKjwR94uBs4Tbxi/XIFg5KNTYI7D7sjq4W//N79/xZ447V8ju9m9dOYDKeoqKub4QB1D8kR23jDGpGDG7ucN/BIibIGG4TRdADqdXo1jiQB/qapoSmfUM8wR+WFpumftLH/+3VkRXFHHQFLakh/giK4qZKf3JJbFXp2NPDiLDEVgelsD4DvESJw0SYIiLs5CnCQfT2BaLpjeWsqz1UN6Qw94dJcF4uR+NLIXDDL9dAglgXj458BJv4o8Ps1aQrG1iRjFRJDSwbWJ6Db4TVhyMY8S1HRNUx6D3vwBTGtFRX/+XGVUiWXTqa/kouQmeubWY+Yr3csglBdIyzoaLrKwihnYL2Z6kSY7e+GSLujYk507UvDc7SNYq/fSa8YpAs="
skip_cleanup: true
file:
- "build/whalebrew-Darwin-x86_64"
- "build/whalebrew-Linux-x86_64"
on:
repo: whalebrew/whalebrew
tags: true