Merge branch 'master' of https://github.com/Swarmops/Swarmops
This commit is contained in:
@@ -66,6 +66,7 @@
|
||||
<description>Remove weird output folder that shouldn't be there</description>
|
||||
</exec>
|
||||
|
||||
|
||||
<!-- Deploy for packaging: only on success of build above -->
|
||||
|
||||
<buildpublisher>
|
||||
@@ -84,14 +85,26 @@
|
||||
<alwaysPublish>false</alwaysPublish>
|
||||
</buildpublisher>
|
||||
|
||||
|
||||
<!-- Post-build script (note that it's run in the publication folder) -->
|
||||
|
||||
<exec>
|
||||
<executable>bash</executable>
|
||||
<buildArgs>-c /usr/share/ccnet/bin/scripts/postbuild-fixes</buildArgs>
|
||||
<baseDirectory>/home/builder/swarmops/builds/internal</baseDirectory>
|
||||
<description>Prebuild fixes</description>
|
||||
</exec>
|
||||
|
||||
|
||||
<!-- Copy /etc/init.d files for backend (and frontend?) -->
|
||||
|
||||
<exec>
|
||||
<executable>bash</executable>
|
||||
<buildArgs>-c "mv /home/builder/swarmops/sources/continuous/repo/Backend/etcinitd /home/builder/swarmops/builds/internal/backend"</buildArgs>
|
||||
<description>Remove weird output folder that shouldn't be there</description>
|
||||
<description>Copying /etc/init.d files for Backend Upstart</description>
|
||||
</exec>
|
||||
|
||||
|
||||
<!-- Fix Mono bug: copy all resource files to root resource folder -->
|
||||
|
||||
<exec>
|
||||
|
||||
Executable
+51
@@ -0,0 +1,51 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This file is to be run in the build directory, after publication of the finished build there.
|
||||
|
||||
# ===================================================
|
||||
# FRONTEND FIXES
|
||||
# ===================================================
|
||||
|
||||
# Remove all source files and re-reference aspx, ascx
|
||||
# files to refer to the compiled Swarmops.Frontend
|
||||
# assembly instead.
|
||||
|
||||
|
||||
cd frontend
|
||||
|
||||
# Rereference ASCX, ASPX files
|
||||
|
||||
find . -iname '*.asp?.*.cs' -delete
|
||||
find . -iname '*.asp?.cs' -delete
|
||||
|
||||
find . -iname '*.as?x' -exec perl -pi -e 's/[Cc]ode[Bb]ehind=\".*?\"//g;' {} \;
|
||||
find . -iname '*.as?x' -exec perl -pi -e 's/[Cc]ode[Ff]ile=\".*?\"//g;' {} \;
|
||||
find . -iname '*.as?x' -exec perl -pi -e 's/[Ii]nherits=\"(.*?)\"/Inherits="$1, Swarmops.Frontend"/g;' {} \;
|
||||
|
||||
|
||||
# Rereference Master(s)
|
||||
|
||||
find . -iname '*.master.*.cs' -delete
|
||||
find . -iname '*.master.cs' -delete
|
||||
|
||||
find . -iname '*.master' -exec perl -pi -e 's/[Cc]ode[Bb]ehind=\".*?\"//g;' {} \;
|
||||
find . -iname '*.master' -exec perl -pi -e 's/[Cc]ode[Ff]ile=\".*?\"//g;' {} \;
|
||||
find . -iname '*.master' -exec perl -pi -e 's/[Ii]nherits=\"(.*?)\"/Inherits="$1, Swarmops.Frontend"/g;' {} \;
|
||||
|
||||
|
||||
# Remove template configs, project files, and other
|
||||
# build artifacts from deployment package
|
||||
|
||||
rm -rf obj
|
||||
|
||||
find . -iname '*.csproj' -delete
|
||||
|
||||
rm web.Debug.config
|
||||
rm web.Release.config
|
||||
rm packages.condig
|
||||
|
||||
|
||||
cd ..
|
||||
|
||||
|
||||
|
||||
@@ -110,8 +110,6 @@ if [ "$COPYFILES" == "yes" ]; then
|
||||
mv $DEPLOYDIR/$TARGETDIR/machineKey.config etc/swarmops/.
|
||||
sed -i 's/\"machineKey.config\"/\"..\/..\/..\/..\/etc\/swarmops\/machineKey.config\"/g' $DEPLOYDIR/$TARGETDIR/web.config
|
||||
echo "UNINITIALIZED" > etc/swarmops/symmetricKey.config
|
||||
echo "Removing all source files..."
|
||||
rm -r $DEPLOYDIR/$TARGETDIR/*.cs
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user