1212 displayName : ' Run script build.cmd'
1313 inputs :
1414 filename : build.cmd
15- arguments : ' -verbose -configuration $(buildConfiguration)'
15+ arguments : ' -verbose -configuration $(buildConfiguration) -steps "InstallDotnet, Restore, UpdateLocalization, Build, Publish" '
1616 modifyEnvironment : false
1717 failOnStandardError : true
1818
3232 arguments : ' -verbose -configuration $(buildConfiguration)'
3333 modifyEnvironment : false
3434 failOnStandardError : true
35+
36+ - task : PublishPipelineArtifact@1
37+ inputs :
38+ targetPath : ' $(Build.SourcesDirectory)\artifacts'
39+ artifact : ' testArtifacts'
40+ publishLocation : ' pipeline'
41+
42+ - job : WindowsAcceptance
43+ dependsOn : Windows
44+ timeoutInMinutes : 120
45+ pool :
46+ vmImage : ' vs2017-win2016'
47+ variables :
48+ buildConfiguration : ' Release'
49+ steps :
50+ - task : DownloadPipelineArtifact@2
51+ inputs :
52+ buildType : ' current'
53+ artifactName : ' testArtifacts'
54+ targetPath : ' $(Build.SourcesDirectory)\artifacts'
55+
56+ - task : PowerShell@2
57+ inputs :
58+ targetType : ' inline'
59+ script : ' ls "$(Build.SourcesDirectory)\artifacts\" -Recurse -Dir'
60+
61+ - task : BatchScript@1
62+ displayName : ' Run script build.cmd'
63+ inputs :
64+ filename : build.cmd
65+ # build should not be needed in the end, we are copying the build task from the build folder, but we should get
66+ # it either from artifacts, if present, or from extracted package file
67+ # Adding it at the moment to avoid this error: #[error]Copy-Item : Cannot find path 'D:\a\1\s\src\Microsoft.TestPlatform.Build\bin\Release\netstandard2.0' because it does not exist.
68+ arguments : ' -verbose -configuration $(buildConfiguration) -steps "InstallDotnet, Build, PrepareAcceptanceTests"'
69+ modifyEnvironment : false
70+ failOnStandardError : true
3571
72+ - task : PowerShell@2
73+ inputs :
74+ targetType : ' inline'
75+ script : ' ls "$(Build.SourcesDirectory)\artifacts\Release\packages"'
76+
3677 - task : BatchScript@1
3778 displayName : ' Run Acceptance Tests'
3879 inputs :
64105 testResultsFiles : ' **\*.trx'
65106 condition : succeededOrFailed()
66107
67- - job :
108+ - job : OtherOSes
109+ dependsOn : Windows
68110 workspace :
69111 clean : all
70112 strategy :
@@ -81,7 +123,17 @@ jobs:
81123 buildConfiguration : ' Release'
82124 steps :
83125 - script : ./build.sh -c $(buildConfiguration)
84- displayName : ' ./build.sh -c $(buildConfiguration)'
85- - script : ./test.sh -c $(buildConfiguration)
86- displayName : ' ./test.sh -c $(buildConfiguration)'
126+ displayName : ' Build'
127+ - script : ./test.sh -c $(buildConfiguration) -p Unit
128+ displayName : ' Unit tests'
129+ - task : DownloadPipelineArtifact@2
130+ inputs :
131+ buildType : ' current'
132+ artifactName : ' testArtifacts'
133+ targetPath : ' $(Build.SourcesDirectory)/artifacts'
134+ - script : ./tools/dotnet-linux/dotnet build -c $(buildConfiguration) ./test/TestAssets/TestAssets.sln
135+ displayName : ' Build test assets'
136+ - script : ./test.sh -c $(buildConfiguration) -p Acceptance
137+ displayName : ' Acceptance tests'
138+
87139
0 commit comments