ants/.travis.yml

48 lines
2.0 KiB
YAML
Raw Normal View History

2018-06-29 05:25:18 +03:00
language: go
os:
- linux
- osx
- windows
2018-06-29 05:25:18 +03:00
dist: bionic
go:
- 1.11.x
- 1.12.x
- 1.13.x
2020-02-28 06:04:55 +03:00
- 1.14.x
2018-07-15 15:50:10 +03:00
before_install:
- if [[ "${GO111MODULE}" = "on" ]]; then mkdir "${HOME}/go"; export GOPATH="${HOME}/go";
export PATH="$GOPATH/bin:$PATH"; fi
install:
- go get -u golang.org/x/lint/golint
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh
| sh -s -- -b $(go env GOPATH)/bin v1.24.0
- mkdir -p ~/bin/ && export PATH="~/bin/:$PATH"
- curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh|
sh -s -- -b ~/bin
go_import_path: github.com/panjf2000/ants
2018-06-29 05:25:18 +03:00
script:
- golint ./... | reviewdog -f=golint -reporter=github-check
- golangci-lint run --out-format=line-number -E golint -E misspell -E lll -E gofmt
| reviewdog -f=golangci-lint -reporter=github-check
- golint ./... | reviewdog -f=golint -reporter=github-pr-review
- golangci-lint run --out-format=line-number -E golint -E misspell -E lll -E gofmt
| reviewdog -f=golangci-lint -reporter=github-pr-review
2019-01-27 08:30:38 +03:00
- go test -race -coverprofile=coverage.txt -covermode=atomic -v
2018-07-15 15:50:10 +03:00
after_success:
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then curl -s https://codecov.io/bash >
.codecov && chmod +x .codecov && ./.codecov; else bash <(curl -s https://codecov.io/bash);
fi
env:
global:
- GO111MODULE=on
- secure: ajez2Mpm5Txz1bg1eG7qxZinuyC99IUTXDzlAHHqkkPxai8Pa95Zv5v540aRz3oC+TF4Nu9r+qxkn4VIgOc6GxE8j9ySQs5QflbvH74loNlkpWkOrSsimnYaFYvJQQZjbb1P0L29L9p+bZ72ZlDAjFaEBYeFH4MwG4qotVxepLmyOghaCsXzQNt9a0ETJ9o/0gnKpdd7W2Tqz1LBEwEZrunF0z8HQtHS1/HK9YA5Anxv4S5hchkKAQtaXg6y26dDW5ZEPAd1Uw3dTv1CHn35WBeI/l2wKNq1Xfq1gl2mKzKyxWSk1sbeHOYMMICB64YakAZWv6FYPuK1qiFGe0/LYrFc+//I0T7+1zuY9ZV692TbuPB+qkNp325Ma6eadU3tD9rhaXSizLFiLch5W7V1VYORRoeNXq+SThXr3gAJ+PwLNKca++jbiFi/WotO9/3RhiBtJHWIXTUejD028C6hGV0xgt5GtWyktdBITOkWCr7vZjM0oQEeSpXqySbnRkIuBsInEDW4bUbsyXpeZf/Ftj8OaEJFKtAgJkj8uR6ErfianorEIgGfmydyInooIxViW2C4eC3IrS3EgdMCdXsg1bxC6j5p5z7Nz7eQIRYk+ClhVSrGV7XJS6N/HmQw5dpK51iAp+rLjJsRHdprGHxZeaPSIYrGuBERwb0mvncCwFk=