Commit 070a5f70 authored by Fardale's avatar Fardale

Ajout des test au CI

parent 36a2869d
...@@ -6,20 +6,23 @@ make clean ...@@ -6,20 +6,23 @@ make clean
if ! make; then if ! make; then
echo 'Compilation error in the master branch.' > CI/msg echo 'Compilation error in the master branch.' > CI/msg
echo 'Result of make :\n' >> CI/msg echo 'Result of make :\n' >> CI/msg
make 2>> CI/msgerror make 2>> CI/msg
cat CI/msgerror >> CI/msg
echo '\n-- \nCI script' >> CI/msg echo '\n-- \nCI script' >> CI/msg
# Kludge : pas de serveur smtp accessible depuis la salle. # Kludge : pas de serveur smtp accessible depuis la salle.
scp CI/msg fardale@crash-test.crans.org:the_dungeon_project/ scp CI/msg fardale@crash-test.crans.org:the_dungeon_project/
ssh fardale@crash-test.crans.org './the_dungeon_project/mailci.py "ens-info-genielog-2015@lists.crans.org" ./the_dungeon_project/msg' ssh fardale@crash-test.crans.org './the_dungeon_project/mailci.py "ens-info-genielog-2015@lists.crans.org" ./the_dungeon_project/msg'
rm -f CI/msg rm -f CI/msg
echo 'It seems that your commit breaks the compilation of the project.' > CI/msg fi
echo 'Result of make :\n' >> CI/msg
cat CI/msgerror >> CI/msg if ! make test; then
echo 'Test error in the master branch.' > CI/msg
echo 'Result of make test :\n' >> CI/msg
make test 2>> CI/msg
echo '\n-- \nCI script' >> CI/msg echo '\n-- \nCI script' >> CI/msg
# Kludge : pas de serveur smtp accessible depuis la salle. # Kludge : pas de serveur smtp accessible depuis la salle.
scp CI/msg fardale@crash-test.crans.org:the_dungeon_project/ scp CI/msg fardale@crash-test.crans.org:the_dungeon_project/
ssh fardale@crash-test.crans.org "./the_dungeon_project/mailci.py $(git log -n 1 | grep Author | sed "s/.*<\(.*\)>/\1/g") ./the_dungeon_project/msg" ssh fardale@crash-test.crans.org './the_dungeon_project/mailci.py "ens-info-genielog-2015@lists.crans.org" ./the_dungeon_project/msg'
rm -f CI/msg
fi fi
exit 0 exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment