1
+ $exitCode = 0 ;
2
+
3
+ function CheckExitCode ([string ] $step , [int ] $currentCode )
4
+ {
5
+ if ($LASTEXITCODE -ne 0 )
6
+ {
7
+ Write-Host " Step '$step ' failed" - ForegroundColor Red
8
+ return 1
9
+ }
10
+
11
+ return $currentCode ;
12
+ }
13
+
14
+ & $env: APPVEYOR_BUILD_FOLDER \packages\xunit.runner.console.2.3 .0 \tools\net452\xunit.console.x86.exe " $env: APPVEYOR_BUILD_FOLDER \test\WebJobs.Script.Tests\bin\Release\Microsoft.Azure.WebJobs.Script.Tests.dll" - appveyor
15
+ $exitCode = CheckExitCode(" Unit tests" , $exitCode )
16
+
17
+ & $env: APPVEYOR_BUILD_FOLDER \packages\xunit.runner.console.2.3 .0 \tools\net452\xunit.console.x86.exe " $env: APPVEYOR_BUILD_FOLDER \test\WebJobs.Script.Scaling.Tests\bin\Release\Microsoft.Azure.WebJobs.Script.Scaling.Tests.dll" - appveyor
18
+ $exitCode = CheckExitCode(" Scaling tests" , $exitCode )
19
+
20
+ .\runNodeTests.cmd
21
+ $exitCode = CheckExitCode(" Node tests" , $exitCode )
22
+
23
+ & $env: APPVEYOR_BUILD_FOLDER \packages\xunit.runner.console.2.3 .0 \tools\net452\xunit.console.x86.exe " $env: APPVEYOR_BUILD_FOLDER \test\WebJobs.Script.Tests.Integration\bin\Release\Microsoft.Azure.WebJobs.Script.Tests.Integration.dll" - notrait " Category=E2E"
24
+ $exitCode = CheckExitCode(" Non-E2E tests" , $exitCode )
25
+
26
+ & $env: APPVEYOR_BUILD_FOLDER \packages\xunit.runner.console.2.3 .0 \tools\net452\xunit.console.x86.exe " $env: APPVEYOR_BUILD_FOLDER \test\WebJobs.Script.Tests.Integration\bin\Release\Microsoft.Azure.WebJobs.Script.Tests.Integration.dll" - trait " E2E=CSharpEndToEndTests"
27
+ $exitCode = CheckExitCode(" CSharpEndToEndTests tests" , $exitCode )
28
+
29
+ & $env: APPVEYOR_BUILD_FOLDER \packages\xunit.runner.console.2.3 .0 \tools\net452\xunit.console.x86.exe " $env: APPVEYOR_BUILD_FOLDER \test\WebJobs.Script.Tests.Integration\bin\Release\Microsoft.Azure.WebJobs.Script.Tests.Integration.dll" - trait " E2E=NodeEndToEndTests"
30
+ $exitCode = CheckExitCode(" NodeEndToEndTests tests" , $exitCode )
31
+
32
+ & $env: APPVEYOR_BUILD_FOLDER \packages\xunit.runner.console.2.3 .0 \tools\net452\xunit.console.x86.exe " $env: APPVEYOR_BUILD_FOLDER \test\WebJobs.Script.Tests.Integration\bin\Release\Microsoft.Azure.WebJobs.Script.Tests.Integration.dll" - trait " E2E=BashEndToEndTests"
33
+ $exitCode = CheckExitCode(" BashEndToEndTests tests" , $exitCode )
34
+
35
+ & $env: APPVEYOR_BUILD_FOLDER \packages\xunit.runner.console.2.3 .0 \tools\net452\xunit.console.x86.exe " $env: APPVEYOR_BUILD_FOLDER \test\WebJobs.Script.Tests.Integration\bin\Release\Microsoft.Azure.WebJobs.Script.Tests.Integration.dll" - trait " E2E=DirectLoadEndToEndTests"
36
+ $exitCode = CheckExitCode(" DirectLoadEndToEndTests tests" , $exitCode )
37
+
38
+ & $env: APPVEYOR_BUILD_FOLDER \packages\xunit.runner.console.2.3 .0 \tools\net452\xunit.console.x86.exe " $env: APPVEYOR_BUILD_FOLDER \test\WebJobs.Script.Tests.Integration\bin\Release\Microsoft.Azure.WebJobs.Script.Tests.Integration.dll" - trait " E2E=FSharpEndToEndTests"
39
+ $exitCode = CheckExitCode(" FSharpEndToEndTests tests" , $exitCode )
40
+
41
+ & $env: APPVEYOR_BUILD_FOLDER \packages\xunit.runner.console.2.3 .0 \tools\net452\xunit.console.x86.exe " $env: APPVEYOR_BUILD_FOLDER \test\WebJobs.Script.Tests.Integration\bin\Release\Microsoft.Azure.WebJobs.Script.Tests.Integration.dll" - trait " E2E=PhpEndToEndTests"
42
+ $exitCode = CheckExitCode(" PhpEndToEndTests tests" , $exitCode )
43
+
44
+ & $env: APPVEYOR_BUILD_FOLDER \packages\xunit.runner.console.2.3 .0 \tools\net452\xunit.console.x86.exe " $env: APPVEYOR_BUILD_FOLDER \test\WebJobs.Script.Tests.Integration\bin\Release\Microsoft.Azure.WebJobs.Script.Tests.Integration.dll" - trait " E2E=PowerShellEndToEndTests"
45
+ $exitCode = CheckExitCode(" PowerShellEndToEndTests tests" , $exitCode )
46
+
47
+ & $env: APPVEYOR_BUILD_FOLDER \packages\xunit.runner.console.2.3 .0 \tools\net452\xunit.console.x86.exe " $env: APPVEYOR_BUILD_FOLDER \test\WebJobs.Script.Tests.Integration\bin\Release\Microsoft.Azure.WebJobs.Script.Tests.Integration.dll" - trait " E2E=PythonEndToEndTests"
48
+ $exitCode = CheckExitCode(" PythonEndToEndTests tests" , $exitCode )
49
+
50
+ & $env: APPVEYOR_BUILD_FOLDER \packages\xunit.runner.console.2.3 .0 \tools\net452\xunit.console.x86.exe " $env: APPVEYOR_BUILD_FOLDER \test\WebJobs.Script.Tests.Integration\bin\Release\Microsoft.Azure.WebJobs.Script.Tests.Integration.dll" - trait " E2E=RawAssemblyEndToEndTests"
51
+ $exitCode = CheckExitCode(" RawAssemblyEndToEndTests tests" , $exitCode )
52
+
53
+ & $env: APPVEYOR_BUILD_FOLDER \packages\xunit.runner.console.2.3 .0 \tools\net452\xunit.console.x86.exe " $env: APPVEYOR_BUILD_FOLDER \test\WebJobs.Script.Tests.Integration\bin\Release\Microsoft.Azure.WebJobs.Script.Tests.Integration.dll" - trait " E2E=SamplesEndToEndTests"
54
+ $exitCode = CheckExitCode(" SamplesEndToEndTests tests" , $exitCode )
55
+
56
+ & $env: APPVEYOR_BUILD_FOLDER \packages\xunit.runner.console.2.3 .0 \tools\net452\xunit.console.exe " $env: APPVEYOR_BUILD_FOLDER \test\WebJobs.Script.Tests.Integration\bin\Release\Microsoft.Azure.WebJobs.Script.Tests.Integration.dll" - trait " E2E=NodeEndToEndTests"
57
+ $exitCode = CheckExitCode(" NodeEndToEndTests tests (x64)" , $exitCode )
58
+
59
+ exit $exitCode
0 commit comments