-
Notifications
You must be signed in to change notification settings - Fork 1
/
benchmark.sh
executable file
·48 lines (41 loc) · 1.65 KB
/
benchmark.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
#!/usr/bin/env bash
echo "========================================================================================"
cd foobar-berry
echo "berry"
echo ""
time (yarn install > /dev/null 2>&1 && echo "install ok" || echo "install fail")
echo ""
time (yarn build-storybook > /dev/null 2>&1 && echo "build-storybook ok" || echo "build-storybook fail")
echo ""
time (yarn build > /dev/null 2>&1 && echo "build ok" || echo "build fail")
echo ""
time (yarn test --watchAll=false > /dev/null 2>&1 && echo "test ok" || echo "test fail")
echo ""
cd ..
echo "========================================================================================"
cd foobar-yarn
echo "yarn"
echo ""
time (yarn install > /dev/null 2>&1 && echo "install ok" || echo "install fail")
echo ""
time (yarn build-storybook > /dev/null 2>&1 && echo "build-storybook ok" || echo "build-storybook fail")
echo ""
time (yarn build > /dev/null 2>&1 && echo "build ok" || echo "build fail")
echo ""
time (yarn test --watchAll=false > /dev/null 2>&1 && echo "test ok" || echo "test fail")
echo ""
cd ..
echo "========================================================================================"
cd foobar-npm
echo "npm"
echo ""
time (npm install > /dev/null 2>&1 && echo "install ok" || echo "install fail")
echo ""
time (npm run build-storybook > /dev/null 2>&1 && echo "build-storybook ok" || echo "build-storybook fail")
echo ""
time (npm run build > /dev/null 2>&1 && echo "build ok" || echo "build fail")
echo ""
time (npm run test -- --watchAll=false > /dev/null 2>&1 && echo "test ok" || echo "test fail")
echo ""
cd ..
echo "========================================================================================"