Skip to content

Commit

Permalink
Make pack and push exit on error
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgkccampbell committed Dec 26, 2017
1 parent 3642d57 commit 338549f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 23 additions & 1 deletion Packages/pack.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,66 +10,88 @@

powershell -Command "(gc Ultraviolet.OpenGL.Bindings.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.OpenGL.Bindings.nuspec"
nuget pack Ultraviolet.OpenGL.Bindings.nuspec -Symbols
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.Core.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.Core.nuspec"
nuget pack Ultraviolet.Core.nuspec -Symbols
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.Shims.Android.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.Shims.Android.nuspec"
nuget pack Ultraviolet.Shims.Android.nuspec -Symbols
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.BASS.Native.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.BASS.Native.nuspec"
nuget pack Ultraviolet.BASS.Native.nuspec
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.BASS.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.BASS.nuspec"
nuget pack Ultraviolet.BASS.nuspec -Symbols
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.Shims.Desktop.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.Shims.Desktop.nuspec"
nuget pack Ultraviolet.Shims.Desktop.nuspec -Symbols
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.nuspec"
nuget pack Ultraviolet.nuspec -Symbols
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.OpenGL.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.OpenGL.nuspec"
nuget pack Ultraviolet.OpenGL.nuspec -Symbols
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.Shims.macOS.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.Shims.macOS.nuspec"
nuget pack Ultraviolet.Shims.macOS.nuspec
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.Shims.iOS.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.Shims.iOS.nuspec"
nuget pack Ultraviolet.Shims.iOS.nuspec
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.SDL2.Native.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.SDL2.Native.nuspec"
nuget pack Ultraviolet.SDL2.Native.nuspec
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.SDL2.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.SDL2.nuspec"
nuget pack Ultraviolet.SDL2.nuspec -Symbols
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.SDL2.UIKit.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.SDL2.UIKit.nuspec"
nuget pack Ultraviolet.SDL2.UIKit.nuspec -Symbols
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.Presentation.Compiler.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.Presentation.Compiler.nuspec"
nuget pack Ultraviolet.Presentation.Compiler.nuspec -Symbols
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.Presentation.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.Presentation.nuspec"
nuget pack Ultraviolet.Presentation.nuspec -Symbols
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.Tools.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.Tools.nuspec"
nuget pack Ultraviolet.Tools.nuspec
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.Game.Desktop.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.Game.Desktop.nuspec"
nuget pack Ultraviolet.Game.Desktop.nuspec
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.Game.Android.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.Game.Android.nuspec"
nuget pack Ultraviolet.Game.Android.nuspec
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.Game.iOS.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.Game.iOS.nuspec"
nuget pack Ultraviolet.Game.iOS.nuspec
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.Game.macOS.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.Game.macOS.nuspec"
nuget pack Ultraviolet.Game.macOS.nuspec
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.Windows.Forms.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.Windows.Forms.nuspec"
nuget pack Ultraviolet.Windows.Forms.nuspec
@if %errorlevel% neq 0 @exit /b %errorlevel%

powershell -Command "(gc Ultraviolet.Game.Windows.Forms.nuspe_) -replace 'UV_VERSION', '%UV_VERSION%' | sc Ultraviolet.Game.Windows.Forms.nuspec"
nuget pack Ultraviolet.Game.Windows.Forms.nuspec
nuget pack Ultraviolet.Game.Windows.Forms.nuspec
@if %errorlevel% neq 0 @exit /b %errorlevel%
2 changes: 2 additions & 0 deletions Packages/push.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ if [%BAMBOO_NuGetPush%] == [] (

for %%f in (*.nupkg) do (
"nuget.exe" push %%~nf.nupkg -Source %BAMBOO_NuGetPackageSource% -ApiKey !_apikey!
@if %errorlevel% neq 0 @exit /b %errorlevel%
)

cd Symbols

for %%f in (*.nupkg) do (
"..\nuget.exe" push %%~nf.nupkg -Source %BAMBOO_NuGetSymbolsSource% -ApiKey !_apikey!
@if %errorlevel% neq 0 @exit /b %errorlevel%
)
)

0 comments on commit 338549f

Please sign in to comment.