Skip to content

Commit

Permalink
Moved Phantom and build scripts to Resources
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsaidi committed Feb 3, 2012
1 parent 0f6f430 commit 8db3c5f
Show file tree
Hide file tree
Showing 90 changed files with 37 additions and 42 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions Resources/build.bat
@@ -0,0 +1,17 @@
@echo off

:: Change to the directory that this batch file is in
:: NB: it must be invoked with a full path!
for /f %%i in ("%0") do set curpath=%%~dpi
cd /d %curpath%

:: Fetch input parameters
set target=%1
set build.version=%2
set build.config=release

:: Fallback to default settings for missing parameters
if "%target%"=="" set target=default

:: Execute the boo script with params - accessible with e.g. env("build.config")
phantom\phantom.exe -f:build.boo %target% -a:build.config=%build.config% -a:build.version=%build.version%
21 changes: 20 additions & 1 deletion build.boo → Resources/build.boo
Expand Up @@ -18,7 +18,26 @@ target default, (compile, test):
pass

target nuget, (default):
pass
exec(nuget pack ..\nextra\nextra.csproj -prop configuration=release)
exec(nuget pack ..\nextra.web\nextra.web.csproj -prop configuration=release)
exec(nuget pack ..\nextra.mvc\nextra.mvc.csproj -prop configuration=release)
exec(nuget pack ..\nextra.wpf\nextra.wpf.csproj -prop configuration=release)
exec(nuget pack ..\nextra.webforms\nextra.webforms.csproj -prop configuration=release)
exec(nuget pack ..\nextra.winforms\nextra.winforms.csproj -prop configuration=release)

exec(nuget push nextra.${build_version}.nupkg)
exec(nuget push nextra.web."${build_version}".nupkg)
exec(nuget push nextra.mvc.${build_version}.nupkg)
exec(nuget push nextra.wpf.${build_version}.nupkg)
exec(nuget push nextra.webforms.${build_version}.nupkg)
exec(nuget push nextra.winforms.${build_version}.nupkg)

exec(del nextra.${build_version}.nupkg)
exec(del nextra.web."${build_version}".nupkg)
exec(del nextra.mvc.${build_version}.nupkg)
exec(del nextra.wpf.${build_version}.nupkg)
exec(del nextra.webforms.${build_version}.nupkg)
exec(del nextra.winforms.${build_version}.nupkg)

target zip, (compile, test, copy):
zip("${build_folder}", "NExtra.${build_version}.zip")
Expand Down
41 changes: 0 additions & 41 deletions build.bat

This file was deleted.

0 comments on commit 8db3c5f

Please sign in to comment.