|
@@ -1,6 +1,7 @@
|
1
|
1
|
#!/bin/bash -e
|
2
|
2
|
|
3
|
|
-color='\033[1;36m'
|
|
3
|
+lightCyan='\033[1;36m'
|
|
4
|
+green='\033[0;32m'
|
4
|
5
|
nocolor='\033[0m'
|
5
|
6
|
|
6
|
7
|
run_f () {
|
|
@@ -8,11 +9,15 @@ run_f () {
|
8
|
9
|
name=${cmd//[ ]/_}
|
9
|
10
|
|
10
|
11
|
echo "travis_fold:start:$name"
|
11
|
|
- echo -e "${color}\t $cmd \t${nocolor}"
|
|
12
|
+ echo -e "${lightCyan}\t\t $cmd ${nocolor}"
|
|
13
|
+ SECONDS=0
|
12
|
14
|
|
13
|
15
|
($cmd)
|
14
|
16
|
|
|
17
|
+ duration=$SECONDS
|
15
|
18
|
echo "travis_fold:end:$name"
|
|
19
|
+ echo -e "${green}\t\t\t --> $(($duration / 60)) minutes and $(($duration % 60)) seconds ${nocolor}"
|
|
20
|
+ echo "\n"
|
16
|
21
|
}
|
17
|
22
|
|
18
|
23
|
run_f "yarn install"
|