@@ -10,7 +10,7 @@ SET BUILD_MODE=
10
10
SET DOTNET_TEST_ARGS =
11
11
SET DOTNET_TEST_PROJECT_LOCATION =
12
12
13
- SET DOTNET_CI_ARGS = --blame-hang-timeout 60000ms --logger " trx;LogFileName=test-results-release.trx " --logger " console;verbosity=detailed"
13
+ SET DOTNET_CI_ARGS = --blame-hang-timeout 60000ms --logger " console;verbosity=detailed"
14
14
SET DOTNET_TEST_ARGS = --logger " console;verbosity=detailed"
15
15
SET DOTNET_TEST_PROJECT_LOCATION = " .\src\FSharpy.TaskSeq.Test\FSharpy.TaskSeq.Test.fsproj"
16
16
@@ -37,7 +37,7 @@ IF "%~1"=="build" (
37
37
) ELSE IF " %~1 " == " " (
38
38
REM No args, default: build
39
39
SET BUILD_MODE = build
40
- SET BUILD_CONFIG = Release
40
+ SET BUILD_CONFIG = release
41
41
)
42
42
43
43
CALL :tryBuildConfig %REST_ARGS%
@@ -118,42 +118,43 @@ GOTO :EOF
118
118
119
119
REM Continuous integration
120
120
:runCi
121
+ SET TRX_LOGGER = --logger " trx;LogFileName=test-results-%BUILD_CONFIG% .trx"
121
122
ECHO .
122
123
ECHO Continuous integration: %BUILD_CONFIG% configuration...
123
124
ECHO .
124
125
ECHO Restoring dotnet tools...
125
126
dotnet tool restore
126
127
127
128
ECHO Executing:
128
- ECHO dotnet test -c %BUILD_CONFIG% %DOTNET_CI_ARGS% %DOTNET_TEST_PROJECT_LOCATION% %REST_ARGS%
129
+ ECHO dotnet test -c %BUILD_CONFIG% %DOTNET_CI_ARGS% %DOTNET_TEST_PROJECT_LOCATION% %BUILD_CONFIG% % REST_ARGS%
129
130
dotnet test -c %BUILD_CONFIG% %DOTNET_CI_ARGS% %DOTNET_TEST_PROJECT_LOCATION% %REST_ARGS%
130
131
GOTO :EOF
131
132
132
133
133
134
REM Callable label, will resume after 'CALL' line
134
135
:tryBuildConfig
135
136
IF " %~1 " == " release" (
136
- SET BUILD_CONFIG = Release
137
+ SET BUILD_CONFIG = release
137
138
CALL :shiftArg %REST_ARGS%
138
139
)
139
140
IF " %~1 " == " -release" (
140
- SET BUILD_CONFIG = Release
141
+ SET BUILD_CONFIG = release
141
142
CALL :shiftArg %REST_ARGS%
142
143
)
143
144
IF " %~1 " == " /release" (
144
- SET BUILD_CONFIG = Release
145
+ SET BUILD_CONFIG = release
145
146
CALL :shiftArg %REST_ARGS%
146
147
)
147
148
IF " %~1 " == " debug" (
148
- SET BUILD_CONFIG = Debug
149
+ SET BUILD_CONFIG = debug
149
150
CALL :shiftArg %REST_ARGS%
150
151
)
151
152
IF " %~1 " == " -debug" (
152
- SET BUILD_CONFIG = Debug
153
+ SET BUILD_CONFIG = debug
153
154
CALL :shiftArg %REST_ARGS%
154
155
)
155
156
IF " %~1 " == " /debug" (
156
- SET BUILD_CONFIG = Debug
157
+ SET BUILD_CONFIG = debug
157
158
CALL :shiftArg %REST_ARGS%
158
159
)
159
160
GOTO :EOF
0 commit comments