Factor out nightly build portion of CI script so not all branches push builds

This commit is contained in:
Tom Robinson
2010-03-09 15:32:13 -08:00
parent cc2bb8f496
commit 4b1bf1fe65
3 changed files with 24 additions and 11 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
PACKAGE_BRANCH="nightly" jake push-packages
code=$?
if [ $code -ne 0 ]; then
echo "NIGHTLY BUILD PUSH FAILED ($code)"
exit $code
else
echo "NIGHTLY BUILD PUSH SUCCEEDED"
fi
+8 -11
View File
@@ -1,11 +1,12 @@
#!/bin/bash
project_home="$(dirname "$PWD")"
extras = "$project_home/ci-extra.sh"
export PATH="$HOME/narwhal/bin:$PATH"
export CAPP_AUTO_UPGRADE="yes"
export CAPP_BUILD=$project_home/build_incremental
export CAPP_BUILD="$project_home/build_incremental"
time jake test
code=$?
if [ $code -ne 0 ]; then
@@ -15,8 +16,8 @@ else
echo "INCREMENTAL BUILD SUCCEEDED"
fi
export CAPP_BUILD=$project_home/build_clean
rm -rf $CAPP_BUILD
export CAPP_BUILD="$project_home/build_clean"
rm -rf "$CAPP_BUILD"
time jake CommonJS test
code=$?
@@ -27,13 +28,9 @@ else
echo "CLEAN BUILD SUCCEEDED"
fi
PACKAGE_BRANCH="nightly" jake push-packages
code=$?
if [ $code -ne 0 ]; then
echo "NIGHTLY BUILD PUSH FAILED ($code)"
exit $code
else
echo "NIGHTLY BUILD PUSH SUCCEEDED"
# run any additional ci commands not common to all branches (like nightly builds)
if [ -f "$extras" ]; then
source "$extras"
fi
exit 0
exit 0
+6
View File
@@ -0,0 +1,6 @@
Project.configure do |project|
project.email_notifier.emails = ['objjbuild@googlegroups.com']
project.build_command = 'Tools/Scripts/ci.sh'
end