Skip to content

Commit e0557f4

Browse files
Add PowerShell file to run OATS
Add a PowerShell script to run the OATS tests locally cross-platform.
1 parent b07a2c2 commit e0557f4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

scripts/run-oats-tests.ps1

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#! /usr/bin/env pwsh
2+
3+
$ErrorActionPreference = "Stop"
4+
$InformationPreference = "Continue"
5+
$ProgressPreference = "SilentlyContinue"
6+
7+
# TODO Pin to specific version and then update with renovate
8+
${env:OATS_VERSION}="173ac1f6a190c2ffd156a98dfe923c70a2a0c3ca"
9+
10+
${env:TESTCASE_SKIP_BUILD}="true"
11+
${env:TESTCASE_TIMEOUT}="5m"
12+
${env:TESTCASE_BASE_PATH}="./docker"
13+
14+
go install "github.com/grafana/oats@${env:OATS_VERSION}"
15+
& "${env:GOPATH}/bin/oats" ./docker/docker-compose-aspnetcore

0 commit comments

Comments
 (0)