Added CruiseControl files

This commit is contained in:
Micke Prag 2008-11-16 01:31:47 +00:00
parent 59b7c6f4cc
commit b74c4dfeda
2 changed files with 47 additions and 0 deletions

42
telldus-core/cruise_build.sh Executable file
View file

@ -0,0 +1,42 @@
#!/bin/bash
CMAKE_LOG="$CC_BUILD_ARTIFACTS/cmake.log"
if [ ! -d "$CC_BUILD_ARTIFACTS" ]
then
echo "CC_BUILD_ARTIFACTS does not point to a valid directory!"
exit 1
fi
echo -n "Preparing directories... "
test -d build || mkdir build
echo "done."
(
echo -n "Preparing build... "
echo -n "running cmake... "
cd build
# cmake .. -DCMAKE_BUILD_TYPE=Profile > "$CMAKE_LOG"
cmake .. > "$CMAKE_LOG"
)
if [ "$?" -ne 0 ]
then
echo "failed"
exit 1
fi
echo "done."
echo "Building..."
make -C build
if [ "$?" -ne 0 ]
then
exit 1
fi
#Mina egna tester här
exit 0

View file

@ -0,0 +1,5 @@
Project.configure do |project|
project.email_notifier.emails = ["micke.prag@telldus.se"]
project.email_notifier.from = 'micke.prag@telldus.se'
project.build_command = './cruise_build.sh'
end