This repository has been archived by the owner on Mar 24, 2023. It is now read-only.
forked from robinduval/animated-tribble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·106 lines (87 loc) · 1.45 KB
/
test.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#!/bin/sh
./phpunit LevelA;
LEVELA=$?;
SCORE=0;
if [ $LEVELA = 0 ]; then
SCORE=5;
fi
./phpunit LevelB;
LEVELB=$?;
if [ $LEVELB = 0 ]; then
SCORE=$((SCORE+20));
fi
./phpunit LevelC;
LEVELC=$?;
if [ $LEVELC = 0 ]; then
SCORE=$((SCORE+10));
fi
./phpunit LevelD;
LEVELD=$?;
if [ $LEVELD = 0 ]; then
SCORE=$((SCORE+30));
fi
./phpunit LevelE;
LEVELE=$?;
if [ $LEVELE = 0 ]; then
SCORE=$((SCORE+20));
fi
./phpunit LevelF;
LEVELF=$?;
if [ $LEVELF = 0 ]; then
SCORE=$((SCORE+80));
fi
./phpunit LevelG;
LEVELG=$?;
if [ $LEVELG = 0 ]; then
SCORE=$((SCORE+80));
fi
./phpunit LevelH;
LEVELH=$?;
if [ $LEVELH = 0 ]; then
SCORE=$((SCORE+100));
fi
./phpunit LevelI;
LEVELI=$?;
if [ $LEVELI = 0 ]; then
SCORE=$((SCORE+30));
fi
./phpunit LevelJ;
LEVELJ=$?;
if [ $LEVELJ = 0 ]; then
SCORE=$((SCORE+180));
fi
./phpunit LevelK;
LEVELK=$?;
if [ $LEVELK = 0 ]; then
SCORE=$((SCORE+50));
fi
./phpunit LevelL;
LEVELL=$?;
if [ $LEVELL = 0 ]; then
SCORE=$((SCORE+150));
fi
./phpunit LevelM;
LEVELM=$?;
if [ $LEVELM = 0 ]; then
SCORE=$((SCORE+30));
fi
./phpunit LevelN;
LEVELN=$?;
if [ $LEVELN = 0 ]; then
SCORE=$((SCORE+70));
fi
./phpunit LevelN;
LEVELN=$?;
if [ $LEVELN = 0 ]; then
SCORE=$((SCORE+25));
fi
NAME='plop';
if [ $1 ]; then
NAME=$1;
fi
DATE='000000';
if [ $2 ]; then
DATE=$2
fi
echo "SCORE:"$SCORE
echo "$NAME;$DATE;$SCORE" >> ../../scores.csv