post-merge 989 Bytes
Newer Older
Fardale's avatar
Fardale committed
1 2 3 4 5 6 7 8
#!/bin/sh

# Basic verification. No compilation error
make clean

if  ! make; then
   echo 'Compilation error in the master branch.' > CI/msg
   echo 'Result of make :\n' >> CI/msg
Fardale's avatar
Fardale committed
9
   make 2>> CI/msg
Fardale's avatar
Fardale committed
10 11
   echo '\n-- \nCI script' >> CI/msg
   # Kludge : pas de serveur smtp accessible depuis la salle.
12 13
   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'
Fardale's avatar
Fardale committed
14
   rm -f CI/msg
Fardale's avatar
Fardale committed
15 16 17 18 19 20
fi

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
21 22 23
   echo '\n-- \nCI script' >> CI/msg
   # Kludge : pas de serveur smtp accessible depuis la salle.
   scp CI/msg fardale@crash-test.crans.org:the_dungeon_project/
Fardale's avatar
Fardale committed
24 25
   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
Fardale's avatar
Fardale committed
26 27 28
fi

exit 0