We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e24284b commit 8411ae6Copy full SHA for 8411ae6
1 file changed
test.cmd
@@ -1,13 +1,15 @@
1
@echo off
2
setlocal
3
pushd "%~dp0"
4
-if not defined CI dotnet pack
+if not defined CI dotnet pack || goto :finally
5
+set INSTALLED=
6
dotnet new --install src\ConsoleApp || goto :finally
7
+set INSTALLED=1
8
dotnet new docopt-console -o tmp -n MyConsoleApp || goto :finally
9
dotnet run --project tmp -- --help || goto :finally
10
:finally
11
set EXIT_CODE=%ERRORLEVEL%
12
if exist tmp rmdir /s /q tmp
-dotnet new --uninstall src\ConsoleApp
13
+if defined INSTALLED dotnet new --uninstall src\ConsoleApp
14
popd
15
exit /b %EXIT_CODE%
0 commit comments