Skip to content

Commit 010335d

Browse files
authored
Merge pull request #7 from testspace-samples/azure
Azure
2 parents 616a3c8 + 06d6508 commit 010335d

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ install:
99

1010
build_script:
1111
- nuget restore money/cs-money.sln
12+
- msbuild money/cs-money.csproj /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:runCodeAnalysis=true /p:codeanalysislogfile=..\analysis.xml
1213

1314
test_script:
14-
- msbuild money/cs-money.csproj /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:runCodeAnalysis=true /p:codeanalysislogfile=..\analysis.xml
1515
- .\money\packages\OpenCover.4.6.519\tools\OpenCover.Console -target:".\money\packages\NUnit.ConsoleRunner.3.4.1\tools\nunit3-console.exe" -targetargs:"money\bin\Debug\cs-money.dll" -output:"coverage.xml" -filter:"+[*]* -[*]*MoneyTest*" -register:user
1616

1717
after_test:

azure-pipelines.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
jobs:
2+
- job: Windows
3+
pool:
4+
vmImage: 'vs2015-win2012r2'
5+
steps:
6+
- bash: |
7+
curl -OsSL https://testspace-client.s3.amazonaws.com/testspace-windows.zip
8+
unzip -q testspace-windows.zip
9+
./testspace config url samples.testspace.com
10+
./testspace -v
11+
displayName: 'Setup'
12+
- task: VSBuild@1
13+
inputs:
14+
solution: 'money\cs-money.sln'
15+
vsVersion: '10.0' # Optional. Options: latest, 15.0, 14.0, 12.0, 11.0
16+
configuration: Debug
17+
restoreNugetPackages: true
18+
msbuildArgs: '/p:runCodeAnalysis=true /p:codeanalysislogfile=..\analysis.xml'
19+
- script: |
20+
.\money\packages\OpenCover.4.6.519\tools\OpenCover.Console -target:".\money\packages\NUnit.ConsoleRunner.3.4.1\tools\nunit3-console.exe" -targetargs:"money\bin\Debug\cs-money.dll" -output:"coverage.xml" -filter:"+[*]* -[*]*MoneyTest*" -register:user
21+
displayName: 'Test'
22+
- script: |
23+
testspace analysis.xml [Tests]TestResult.xml coverage.xml
24+
condition: always()
25+
displayName: 'Push'

0 commit comments

Comments
 (0)