source: orange/install-scripts/linux/compileRegress.sh @ 3234:05f64c9a46d8

Revision 3234:05f64c9a46d8, 2.2 KB checked in by cvso <cvso@…>, 7 years ago (diff)

* empty log message *

Line 
1cd /home/orange/install-scripts
2cvs update
3chmod +x linux/testOrange.sh
4chmod +x linux/compileRegress.sh
5chmod +x linux/compileInteractive.sh
6
7# prepare sources
8cd /home/orange/daily
9rm *.log
10rm -Rf orange
11rm -Rf test_install
12cvs -Q -d :pserver:cvso@estelle.fri.uni-lj.si:/cvs checkout -d orange orange
13mkdir orange
14mkdir orange/source
15cd orange
16cvs -Q -d :pserver:cvso@estelle.fri.uni-lj.si:/cvs checkout -d source source
17cd ..
18cp /home/orange/install-scripts/linux/setup.py /home/orange/daily/orange
19
20# build
21cd /home/orange/daily/orange
22VER='1.test'
23cat setup.py | sed s/"OrangeVer=\"ADDVERSION\""/"OrangeVer=\"Orange-$VER\""/ > new.py
24mv -f new.py setup.py
25
26echo `date` > ../output.log
27if ! python setup.py compile >> ../output.log 2>&1 ; then
28  cd /home/orange/daily/orange
29  cat compiling.log >> ../output.log
30  mail -s "Linux: ERROR compiling Orange" janez.demsar@fri.uni-lj.si,ales.erjavec@fri.uni-lj.si,tomaz.curk@fri.uni-lj.si < ../output.log
31  cat ../output.log
32  echo -e "\n\nERROR compiling, see log above"
33  exit 1
34fi
35
36# install
37cd /home/orange/daily/orange
38cat compiling.log >> ../output.log
39echo `date` > install.log
40if ! python setup.py install --orangepath=/home/orange/daily/test_install >> install.log 2>&1 ; then
41  cd /home/orange/daily/orange
42  cat install.log >> ../output.log
43  mail -s "Linux: ERROR installing Orange" tomaz.curk@fri.uni-lj.si < ../output.log
44  cat ../output.log
45  echo -e "\n\nERROR installing, see log above"
46  exit 1
47fi
48
49# regression test
50cd /home/orange/daily/orange
51cat install.log >> ../output.log
52echo `date` > regress.log
53if ! /home/orange/install-scripts/linux/testOrange.sh >> regress.log 2>&1 ; then
54  cd /home/orange/daily/orange
55  #grep -v "(last outcome: OK): 1 2 3 OK" regress.log >> ../output.log
56  grep -v "1 2 3 OK" regress.log >> ../output.log  # changed by JD
57  echo -e "\n\nOnly FAILED tests are reported here." >> ../output.log
58  mail -s "Linux: ERROR regression tests (compile and install OK) Orange" janez.demsar@fri.uni-lj.si,tomaz.curk@fri.uni-lj.si < ../output.log
59  cat ../output.log
60  echo regression tests failed
61else
62  cd /home/orange/daily/orange
63  cat regress.log >> ../output.log
64  mail -s "Linux: Orange compiled successfully" tomaz.curk@fri.uni-lj.si < ../output.log
65  cat ../output.log
66  echo compiling was successful
67fi
68
Note: See TracBrowser for help on using the repository browser.