代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/gnet 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
env:
global:
- DOC=false
- GO111MODULE=on
- secure: IZaEAuG1caQRBXf68hJDWNEveWc+Zk/Sf887DvMkpfWxCM43JqNPF6w0NEfFIyhtOeiVUPRiayn8Z8CjNr5xA/xvK4n31j8G5adYdOB0bR6pM0RoJ7p/Ji0Jni+8R5+IeDO+hORwA215TXPpjjmKeLgMdCXFZqZ1mlOLjBJlBu6sqZzfJe1k873fWJD+xGj5h9GdQveiWbEBtewUWoQeajtq+XHMzjwZxZwhOGUiQhkO9GIYih+oBQlggTf6VzT6FSN1/OTShC2yC6wtsJmqbD4GgGX2Ig8h9n9s/ZMJOFBpWdZMMIL6KJ4cWgANoH5AiBqjXglns8KB8iu7vh9zP4YckSO/s3ufb/w/VnqhZ8F5lWiD4pNyDdWxPKFLT5eO1aTlGmJYvHezZNVx3D6ASRryoH7pI9cduPbcLuA7+d3+FZ7lO/a30TRBHyW6vcDx7vjbTe1M462WGrHKNA6pzpWo3W5rjefo4Msg/wsh6+aD0XmIZ41lxXf/W/IpZ5RyR7R9q3sszdKxG+bkwIgNu0dUwMuenupsP9D+MBVURSY5Jgi1S6xz6R/MZnpN/wlLbI9t4FOcmkd5qj31XB8PDbcH4S+u27+iys9y7rdHwAbhF5qeGNeBwaAQaaXO/AAplJntXsph/7vPCTyHvQrH/shUBG6I2VkQpOJEmQyc1rE=
dist: bionic
matrix:
allow_failures:
- env: DOC=true
fast_finish: true
include:
- os: linux
env: DOC=true
language: node_js
node_js:
- '10'
branches:
only:
- master
cache:
yarn: true
- os: linux
language: go
go: 1.13.x
env: GNET_LOGGING_MODE=prod
- os: linux
language: go
go: 1.14.x
env: GNET_LOGGING_MODE=prod
- os: osx
language: go
go: 1.13.x
env: GNET_LOGGING_MODE=dev
- os: osx
language: go
go: 1.14.x
env: GNET_LOGGING_MODE=dev
- os: windows
language: go
go: 1.13.x
env: GNET_LOGGING_MODE=test
- os: windows
language: go
go: 1.14.x
env: GNET_LOGGING_MODE=test
go_import_path: github.com/panjf2000/gnet
before_install:
- |-
if [ $DOC = 'false' ]; then
if [ $GO111MODULE = 'on' ]; then mkdir "${HOME}/go"; export GOPATH="${HOME}/go"; export PATH="$GOPATH/bin:$PATH"; fi
mkdir -p ~/bin/ && export PATH="~/bin/:$PATH"
fi
install:
- |-
if [ $DOC = 'false' ]; then
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.26.0
curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b ~/bin
fi
script:
- |-
if [ $DOC = 'true' -a $TRAVIS_PULL_REQUEST = 'false' ]; then
git config --global user.name "${GH_NAME}"
git config --global user.email "${GH_EMAIL}"
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
cd website && yarn && GIT_USER="${GH_NAME}" yarn deploy
else
case $TRAVIS_OS_NAME in
linux|osx)
golint ./... | reviewdog -f=golint -reporter=github-check
golangci-lint run --out-format=line-number -D structcheck -E goimports -E gocritic -E misspell -E godot | reviewdog -f=golangci-lint -reporter=github-check
golint ./... | reviewdog -f=golint -reporter=github-pr-review
golangci-lint run --out-format=line-number -D structcheck -E goimports -E gocritic -E misspell -E godot | reviewdog -f=golangci-lint -reporter=github-pr-review
;;
esac
go test -v ./...
go test -v -coverprofile=coverage.txt -covermode=count -timeout 60s
fi
after_success:
- |-
if [ $DOC = 'false' ]; then
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
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。