Unverified Commit e0f15062 authored by Julien Pivotto's avatar Julien Pivotto Committed by GitHub
Browse files

Merge pull request #8455 from mikeee/fix-ci

Fix CI (Windows Testing)
parents ff40af26 9fbce465
......@@ -52,20 +52,25 @@ jobs:
path: test-results
test_windows:
executor: win/default
executor:
name: win/default
shell: powershell
working_directory: /go/src/github.com/prometheus/prometheus
steps:
- checkout
- run:
# Temporary workaround until circleci updates go.
shell: bash
command: |
choco install golang --version 1.15.7
choco upgrade -y golang
- run:
command:
refreshenv
- run:
shell: bash
command: |
(cd web/ui && GOOS= GOARCH= go generate -mod=vendor)
go test -mod=vendor -vet=off -test.v `go list ./...|grep -Exv "(github.com/prometheus/prometheus/discovery.*|github.com/prometheus/prometheus/config|github.com/prometheus/prometheus/web)"`
$env:GOARCH=""; $env:GOOS=""; cd web/ui; go generate -mod=vendor
cd ../..
$TestTargets = go list ./... | Where-Object { $_ -NotMatch "(github.com/prometheus/prometheus/discovery.*|github.com/prometheus/prometheus/config|github.com/prometheus/prometheus/web)"}
go test $TestTargets -mod=vendor -vet=off -v
environment:
GOGC: "20"
GOOPTS: "-p 2 -mod=vendor"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment