A minimal testing server, jenkins -like, but very light
This is a Jenkins like minimal testing server.
It has a very simple configuration file that sets up how to perform the full testing.
As its in a very infant state, and the goals are quite restricted, if you need something more complex, go for Jenkins (http://jenkins-ci.org/). I use it myself for more complex projects.
Features:
Vs Jenkins:
git clone https://github.com/davidmoreno/onion.git
cd onion
mkdir build
cd build
cmake ..
make
sudo make install
git clone https://github.com/davidmoreno/garlic.git
cd garlic
mkdir build
cd build
cmake ..
make
sudo make install
[global]
# if no password, then free entry.
username=coralbits
password=coralbits
name=Example test: random, sometimes ok, sometimes fail.
#cwd= # where to chdir, defaults to test dir.
[scripts]
# command to run when an error happens. As stdin it receives the output of the test.
on_error=mail -s "Garlic error" "[email protected]"
# command to run when after an error we get a success. As stdin it receives the output of the test.
on_back_to_normal=mail -s "Garlic back to normal" "[email protected]"
# check to run for --check_and_run command line parameter.
#check=git fetch && [ $(git diff origin/master | wc -l) = 0 ]
check=false
# test to run
test=./test.sh # must include update/pull if necessary
# name of the test
test_name=Generic test
# if more than one, add _1, _2... to test and test_name.
test_1=git pull
test_name_1=Pull
[env]
# envirnomental variables added before runnign tests and on_error/on_back_to_normal
[email protected]
[email protected]
[env-rw]
# env-rw are environmental varaibles modifiable at the gui when running the tests.
# with defaul option
PARAM1=Default value
# No default option.
PARAM2=
crontab -e
00 * * * * garlic PATH_TO_CONFIG --check-and-run
garlic PATH_TO_CONFIG_INI