Added CruiseControl files
This commit is contained in:
parent
59b7c6f4cc
commit
b74c4dfeda
2 changed files with 47 additions and 0 deletions
42
telldus-core/cruise_build.sh
Executable file
42
telldus-core/cruise_build.sh
Executable 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
|
||||
|
5
telldus-core/cruise_config.rb
Normal file
5
telldus-core/cruise_config.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue