-
Notifications
You must be signed in to change notification settings - Fork 157
/
test.sh
executable file
·40 lines (30 loc) · 997 Bytes
/
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
set -o monitor
if [ "$TEST_SUITE" == "unit" ]
then
echo "###############################"
echo "# Running Available Unit Tests #"
echo "###############################"
yarn test-coverage
elif [ "$TEST_SUITE" == "integration" ]
then
echo "######################################"
echo "# Running Available Integration Tests #"
echo "######################################"
yarn test-integration
elif [ "$TEST_SUITE" == "regression" ]
then
echo "#####################################"
echo "# Running Available Regression Tests #"
echo "#####################################"
yarn test-ci:cypress
elif [ "$TEST_SUITE" == "build" ]
then
echo "#####################################"
echo "# Linting and Building package #"
echo "#####################################"
yarn lint
yarn build
else
echo "exit 1. TEST_SUITE env should be set to unit, integration or regression"
exit 1
fi