-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.ps1
More file actions
41 lines (30 loc) · 1.21 KB
/
test.ps1
File metadata and controls
41 lines (30 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Set-StrictMode -Version 3.0
$ErrorActionPreference = "Stop"
$PSNativeCommandUserErrorActionPerference = $true
# get the location of this file
$scriptpath = $MyInvocation.MyCommand.Path
# get the directory path to this file
$workingdirectory = Split-Path $scriptpath
# set the working directory as this file's directory
Push-Location $workingdirectory
Write-Output "-------------------"
Write-Output "Building x86 Release"
Write-Output "-------------------"
# build the solution
& "MSBuild.exe" /t:Build /p:Platform=x86 /p:Configuration=Release "foolsgoldsource.sln"
Write-Output "-------------------"
Write-Output "Testing x86 Release"
Write-Output "-------------------"
# run the tests
& "vstest.console.exe" Release\foolsgoldsource_test.dll --logger:"console;verbosity=Normal"
Write-Output "-------------------"
Write-Output "Building x64 Release"
Write-Output "-------------------"
# build the solution
& "MSBuild.exe" /t:Build /p:Platform=x64 /p:Configuration=Release "foolsgoldsource.sln"
Write-Output "-------------------"
Write-Output "Testing x64 Release"
Write-Output "-------------------"
# run the tests
& "vstest.console.exe" x64\Release\foolsgoldsource_test.dll --logger:"console;verbosity=Normal"
Pop-Location