-
Notifications
You must be signed in to change notification settings - Fork 2
/
all
executable file
·45 lines (35 loc) · 873 Bytes
/
all
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
37
38
39
40
41
42
43
44
45
#!/bin/bash
exit_if_fail () {
if [ $? -ne 0 ]
then
echo -e "\e[31m"
echo ""
echo " FAIL WHALE!"
echo -e "\e[34m"
echo ""
echo "W W W "
echo "W W W W "
echo " '. W "
echo " .-\"\"-._ \ \.--| "
echo " / \"-..__) .-' "
echo "| _ / "
echo "\\'-.__, .__.,' "
echo " \`'----'._\\--' "
echo ""
echo "$1 test failure! Why would you even write something like that?"
echo -e "\e[0m"
exit 1
fi
}
echo "Running unit tests"
lein midje :filter unit
exit_if_fail Unit
echo "Running integration tests"
./integration
exit_if_fail Integration
sleep 1
echo "Running acceptance tests"
./acceptance
exit_if_fail Acceptance
sleep 1
exit 0