forked from nasa-gibs/worldview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaster.sh
33 lines (33 loc) · 918 Bytes
/
master.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
#!/bin/bash
echo "installing npm dependencies"
if ! npm install ; then
echo "ERROR: \"npm install\" failed" &>2
exit 1
fi
echo "setting up Python environment"
if ! ./wv-python ; then
echo "ERROR: \"./wv-python\" failed" &>2
exit 1
fi
echo "Cleaning dist"
if ! grunt distclean ; then
echo "ERROR: \"grunt distclean\" failed" &>2
exit 1
fi
echo "Generating build"
if ! grunt build ; then
echo "ERROR: \"grunt build\" failed" &>2
exit 1
fi
echo "starting lint report. Results in lint-results.xml"
grunt jshint:report | ./bin/filter-test-report > lint-results.xml
if ! grunt lint ; then
echo "ERROR: \"grunt test\" failed" &>2
exit 1
fi
echo "executing unit tests. Results in test-results.xml"
grunt buster:report | ./bin/filter-test-report > test-results.xml
if ! grunt test ; then
echo "ERROR: \"grunt test\" failed" &>2
exit 1
fi