mirror of
https://github.com/prometheus/prometheus
synced 2025-01-11 17:19:45 +00:00
Change the CI workflow to powershell and fixes the missing env var issue
Signed-off-by: mikeee <hey@mike.ee>
This commit is contained in:
parent
9ca24f9d24
commit
52109966af
@ -52,20 +52,25 @@ jobs:
|
|||||||
path: test-results
|
path: test-results
|
||||||
|
|
||||||
test_windows:
|
test_windows:
|
||||||
executor: win/default
|
executor:
|
||||||
|
name: win/default
|
||||||
|
shell: powershell
|
||||||
working_directory: /go/src/github.com/prometheus/prometheus
|
working_directory: /go/src/github.com/prometheus/prometheus
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
# Temporary workaround until circleci updates go.
|
# Temporary workaround until circleci updates go.
|
||||||
shell: bash
|
|
||||||
command: |
|
command: |
|
||||||
choco upgrade -y golang
|
choco upgrade -y golang
|
||||||
- run:
|
- run:
|
||||||
shell: bash
|
command:
|
||||||
|
refreshenv
|
||||||
|
- run:
|
||||||
command: |
|
command: |
|
||||||
(cd web/ui && GOOS= GOARCH= go generate -mod=vendor)
|
$env:GOARCH=""; $env:GOOS=""; cd web/ui; 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)"`
|
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:
|
environment:
|
||||||
GOGC: "20"
|
GOGC: "20"
|
||||||
GOOPTS: "-p 2 -mod=vendor"
|
GOOPTS: "-p 2 -mod=vendor"
|
||||||
|
Loading…
Reference in New Issue
Block a user