-
Notifications
You must be signed in to change notification settings - Fork 5k
/
Copy pathci.sh
executable file
·70 lines (48 loc) · 1.32 KB
/
ci.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
#!/usr/bin/env bash
# -----------------------------
# CI matrix job selector
# -----------------------------
# Exit immediately on error
set -o errexit
[[ "$(node -v | cut -c 2-3)" -ge 17 ]] && export NODE_OPTIONS=--openssl-legacy-provider;
if [ "$TEST" = "unit" ]; then
npm run build
npm run test:unit
elif [ "$TEST" = "build_and_lint" ]; then
npm run build
npm run dtslint
npm run depcheck
npm run bundlesize
elif [ "$TEST" = "unit_and_e2e_clients" ]; then
npm run build
npm run test:e2e:ganache
npm run test:e2e:geth:insta
npm run test:e2e:geth:auto
npm run test:unit
npm run cov:merge_reports
elif [ "$TEST" = "e2e_browsers" ]; then
npm run build
npm run test:e2e:chrome
npm run test:e2e:firefox
npm run test:e2e:min
npm run test:e2e:cdn
elif [ "$TEST" = "e2e_truffle" ]; then
npm run test:e2e:publish
npm run test:e2e:truffle
elif [ "$TEST" = "e2e_mosaic" ]; then
npm run test:e2e:publish
npm run test:e2e:mosaic
elif [ "$TEST" = "e2e_windows" ]; then
bash ./scripts/e2e.npm.publish.sh
bash ./scripts/e2e.windows.sh
elif [ "$TEST" = "e2e_ganache" ]; then
npm run test:e2e:publish
npm run test:e2e:ganache:core
#elif [ "$TEST" = "e2e_gnosis_dex" ]; then
#
# npm run test:e2e:publish
# npm run test:e2e:gnosis:dex
#
elif [ "$TEST" = "eth2" ]; then
bash ./scripts/eth2.sh
fi