forked from SwarmOnline/Ext.ux.TouchCalendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·36 lines (23 loc) · 796 Bytes
/
build.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
30
31
32
33
34
35
36
clear
### Check for errors; abandon the process if error exist
function checkError {
if [[ $1 != 0 ]] ; then
exit 99
fi
}
### Change to the directory the script is in
here="`dirname \"$0\"`"
cd "$here" || exit 1
cd unittests
echo "*** Jasmine Tests... ***"
phantomjs Jasmine-Runner.js
checkError $?
cd ../builder
java -jar JSBuilder2.jar -v -p Ext.ux.TouchCalendar.jsb2 -d ../
java -jar JSBuilder2.jar -v -p Ext.ux.TouchCalendarView.jsb2 -d ../
java -jar JSBuilder2.jar -v -p Ext.ux.TouchCalendarSimpleEvents.jsb2 -d ../
java -jar JSBuilder2.jar -v -p Ext.ux.TouchCalendarEvents.jsb2 -d ../
jsduck ../min --output ../docs --ignore-global --title "Ext.ux.TouchCalendar Documentation" --footer "Generated with JSDuck"
echo "*** Success ***"
### Exit successfully
exit 0