forked from fyne-io/terminal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (26 loc) · 1.48 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
27
28
29
30
31
language: go
go:
- "1.12.x"
- "1.13.x"
gobuild_args: "-v -tags ci"
before_script:
- NO_VENDOR=$(find . -iname '*.go' -type f | grep -v /vendor/)
- go get golang.org/x/tools/cmd/goimports
- go get golang.org/x/lint/golint
- go get github.com/mattn/goveralls
- go get fyne.io/fyne
script:
- test -z "$(goimports -e -d $NO_VENDOR | tee /dev/stderr)"
- go test -tags ci -race ./...
- go vet -tags ci ./...
- golint -set_exit_status $(go list -tags ci)
- |
set -e
if [[ "$TRAVIS_PULL_REQUEST" == "false" && -n "$COVERALLS_TOKEN" ]]
then
go test -tags ci -covermode=atomic -coverprofile=coverage.out ./...
$(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
fi
env:
global:
secure: "V2JnYIsbY2RVBgMVeb4ATn6nZ5cqn8mMXs1wkqUBrL1PtOVqg9t/SFv4Kx8uF1vHjFLF0i2+d1mN7jKmz04npVO8m4DnfgbvNQlM2UMn080zPwPiag9453w7JR8YHV2ougvHHxKUlZJEgr3e80ryzVB+LUH6z0KfSXNq2+0dTF8CmnQThubZSPQC/8FfkLgB0VM+2AIXy7Q0FyY5VBrpsvwMEMdcMpIt74hDo6r871JZeyVobBPtGi3Ilk7jk3BarjxYYW3qvE0z5sj9TzwCRx20CNrK5+vPBLr4VPRr3mpB8MyH3UIXF0YXJS5fl94lxj2nrfbEZcf5F71ReY4pleQJyGHQjFGgq5WaYfvWLvc7atUpjDMg4D2koDslrlx6cn/hNkjjfx9OSW4qMdxNF9Mq71z+YQsJBrtaZ2BUeHtOWrPx/wudOTzetHb31CSJ6JJIkd4pTEx3xnxkx0NtPexoHYDy8AFWBcQYiWWXtQ2P7qPjlkosRQ+J/8btIFjouo76WWklybNjsGSHZparadvGirRr0LWh4Hl8xOYQjIAQytbNWVG8aOHAthU5c06TbI2SbaOURFe0moPvJ8yfA1zNIcgMe91mPXJTVLH+O97hJ5b2SdU3NaL14lZ3AKW4WPRB0MehrJALveRiUHWGYf0vU6x7gQSF9Ybflsp1QSo="