2018-12-14 00:46:59 +08:00
|
|
|
language: go
|
|
|
|
|
|
|
|
go:
|
2019-01-30 20:38:03 +08:00
|
|
|
- '1.11'
|
|
|
|
- master
|
2018-12-14 00:46:59 +08:00
|
|
|
|
2018-12-18 00:52:58 +08:00
|
|
|
os:
|
2019-01-30 20:38:03 +08:00
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
- osx
|
2018-12-18 00:52:58 +08:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
2019-01-30 20:38:03 +08:00
|
|
|
- os: windows
|
|
|
|
go: master
|
2018-12-18 00:52:58 +08:00
|
|
|
fast_finish: true
|
|
|
|
|
2018-12-14 00:46:59 +08:00
|
|
|
before_install:
|
2019-01-30 20:38:03 +08:00
|
|
|
- go get -t -v ./...
|
|
|
|
- go get -u golang.org/x/tools/cmd/goimports
|
|
|
|
- go get -u golang.org/x/lint/golint
|
|
|
|
- go get github.com/golang/dep/...
|
|
|
|
- chmod +x travis_build.sh
|
2018-12-14 00:46:59 +08:00
|
|
|
|
|
|
|
install:
|
2019-01-30 20:38:03 +08:00
|
|
|
- "$GOPATH/bin/dep ensure -v"
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|
2018-12-18 00:52:58 +08:00
|
|
|
|
2018-12-14 00:46:59 +08:00
|
|
|
script:
|
2019-01-30 20:38:03 +08:00
|
|
|
- go test -v -race ./...
|
|
|
|
- go vet ./...
|
|
|
|
- goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*")
|
|
|
|
- golint $(go list ./... | grep -v /vendor/)
|
|
|
|
- "./travis_build.sh"
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
skip_cleanup: true
|
|
|
|
api_key:
|
2019-01-30 21:20:38 +08:00
|
|
|
secure: abQ1+sEMMsTMQk3aBHc2cD4yi46X38yPPZrY4AIotZTTutrbcfBzuKE7fCOh7C49wi2PS1LsJVtivfe2EBRm/yOV32tKorUL7AzqRSuvIQ6vKvsMU1U10Ix5VghYo+YYTpjPCQb77NNJDDOpjoROnADTXUASCZYw0mOIAHzjFeSBCx5LADOSvQ0JSM8UEBi/n32esBvRuDN1a/2Bp1vzjHrUZ3pN4GZmQxJBrQvE1cNMCwWQvi58Tuqhpu0yL1dCGA3yVG2GOkirSom6UMWGGxtadIdVUjyGzmlV1uGGakkggWazOp+Bw1M2Wrr48kcM9dYWO0YG+FYNroSq13CyBtJiDVG0bAwKHi4VmCtctB1RCBw5UkKQ33z+bDf+aW39/+G/f5OGRHkFB4N0udR8+Z2AmH80jY8PHakRRBbiKBOIkUnWKdbKB4EeosN1BT6+4xbdey3gaeDBU4ERHnceqnGjKRZd24dBu30xfDDfxrexyJsIqM5/uCpv5xgcBdcFIKcPj7hAfGG2v+JgFbQfF/hdRpxlM4xwwArEXEAYILy1OUkOOzsiNatYciOKpzh6uTkroi9DMYrZpJOXIcRjryhQvbe6i/vWC2NimVOa1bv6tJpH2ru/KR5aMhcglZyNGvKU8IJ5jgVN/2EQBIMxD2L92VksV7Hj6pawFrYCixg=
|
2019-01-30 20:38:03 +08:00
|
|
|
file:
|
|
|
|
- ethr_linux.zip
|
|
|
|
- ethr_windows.zip
|
|
|
|
- ethr_osx.zip
|
|
|
|
on:
|
|
|
|
repo: Microsoft/ethr
|
|
|
|
branch: master
|
|
|
|
tags: true
|
|
|
|
|