加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 912 Bytes
一键复制 编辑 原始数据 按行查看 历史
Hana (Hyang-Ah) Kim 提交于 2020-02-27 12:43 . travis.yml - to pick up 1.14
language: go
matrix:
include:
- os: linux
go:
- "1.13.x"
- "1.14"
env:
global:
- GO111MODULE=on
go_import_path: github.com/rogpeppe/godef
# Add this before_install until we have a definitive resolution on
# https://travis-ci.community/t/files-in-checkout-have-eol-changed-from-lf-to-crlf/349/2
before_install:
- cd ../..
- mv $TRAVIS_REPO_SLUG _old
- git config --global core.autocrlf false
- git clone --depth=50 _old $TRAVIS_REPO_SLUG
- cd $TRAVIS_REPO_SLUG
install: "echo no install step required"
script:
- go test ./...
# ensure we can install the "old" way (which will again use vendor)
- GO111MODULE=off go install
- go mod vendor
- go mod tidy
# https://github.com/golang/go/issues/27868#issuecomment-431413621
- go list all > /dev/null
- test -z "$(git status --porcelain)" || (git status; git diff; git show; false)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化