Commit a79a4d07 authored by Tomasz Maczukin's avatar Tomasz Maczukin

Update windows job definition

parent 054730a3
......@@ -240,17 +240,24 @@ unit test with race:
.windows test:
extends: .except_docs
stage: test
variables:
GOROOT: "C:\\Go"
PKG_NAMESPACE: gitlab.com\gitlab-org
PKG_NAME: gitlab-runner
GOPATH: "$CI_PROJECT_DIR\\.gopath"
PKG_BASE_DIR: "$CI_PROJECT_DIR\\.gopath\\src\\$PKG_NAMESPACE"
PKG_BUILD_DIR: "$CI_PROJECT_DIR\\.gopath\\src\\$PKG_NAMESPACE\\$PKG_NAME"
before_script:
- $GODIR = "$env:GOPATH\src\gitlab.com\gitlab-org"
- $target_path = "$GODIR\gitlab-runner"
- $current_path = pwd
- md $GODIR -Force
- if (Test-Path $target_path) { cmd /c rmdir $target_path }
- cmd /c mklink /D $target_path $current_path
- cd $GODIR\gitlab-runner
- cat testsdefinitions.txt
- if (Test-Path $GOPATH) { Remove-Item -Force -Recurse $GOPATH }
- New-Item $PKG_BASE_DIR -ItemType directory -Force
- New-Item -ItemType SymbolicLink -Path $PKG_BUILD_DIR -Value $CI_PROJECT_DIR
- cd $PKG_BUILD_DIR
script:
- $script = Join-Path -Path "ci" -ChildPath "test_windows.ps1"
- Invoke-Expression $script
- powershell -File $script
after_script:
- if (Test-Path $PKG_BUILD_DIR) { $(Get-Item $PKG_BUILD_DIR).Delete() }
allow_failure: true
only:
- /.*/@gitlab-org/gitlab-runner
......
Markdown is supported
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