forked from ElucidataInc/ElMaven
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·30 lines (24 loc) · 853 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
OMP_CANCELLATION=true
export QT_SELECT=qt5
flag=100 #this flag check wether qt running in debug mode or not
while true; do
read -p "Do you wish to install this program in release mode? " yn
case $yn in
[Yy]* ) qmake CONFIG+=release -o Makefile build.pro; break;;
[Nn]* ) qmake CONFIG+=debug -o Makefile build.pro; flag=10; break;;
* ) echo "Please answer yes or no.";;
esac
done
make -j $(getconf _NPROCESSORS_ONLN)
if [ -f tests/MavenTests/test.xml ]; then
rm test*.xml
fi
if [ -f ./bin/MavenTests ]; then
./bin/MavenTests -xml
fi
type="$(uname)"
systemType="$(echo "$type" | tr '[:upper:]' '[:lower:]')"
if [ $systemType == "linux" ] && [ $flag == 10 ]; then
lcov --capture --directory ./ --output-file ../coverage.info --no-external
genhtml ../coverage.info --output-directory ../coverage
fi