4 Star 6 Fork 2

Gitee 极速下载/Athens

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/gomods/athens
克隆/下载
azure-pipelines.yml 893 Bytes
一键复制 编辑 原始数据 按行查看 历史
marpio 提交于 2019-05-03 22:52 . Remove dummy mod dir (#1121)
# Go
# Build your Go project.
# Add steps that test, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/go
pool:
vmImage: 'vs2017-win2016'
variables:
GOBIN: 'C:\Go\bin' # Go binaries path
GOPATH: '$(system.defaultWorkingDirectory)\gopath' # Go workspace path
GO111MODULE: 'on'
modulePath: '$(GOPATH)\src\github.com\$(build.repository.name)' # Path to the module's code
steps:
- powershell: |
choco upgrade golang
mkdir "$env:GOPATH\pkg" | out-null
mkdir "$env:modulePath" | out-null
robocopy "$env:system_defaultWorkingDirectory\" "$env:modulePath\" /E /Z /ZB /R:5 /W:5 /TBD /NP /V /XD "$env:GOPATH"
exit ($LastExitCode -band 24)
displayName: 'set up the Go workspace'
- powershell: |
& "C:\\Go\\bin\\go.exe" test -mod=vendor -race ./...
workingDirectory: '$(modulePath)'
displayName: 'run tests'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/mirrors/Athens.git
git@gitee.com:mirrors/Athens.git
mirrors
Athens
Athens
main

搜索帮助