-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·64 lines (59 loc) · 1.49 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
#!/usr/bin/env bash
set -e
set -o pipefail
set -u
(
printf '===== testing website-node-14 =====\n'
cd website-node-14
yarn install --force
(cd analytics && yarn install --force)
yarn test
rm -rf www/
yarn build
)
(
printf '===== testing website-node-20 =====\n'
cd website-node-20
yarn install --force
(cd analytics && yarn install --force)
node --test
rm -rf www/
yarn build
)
diff -U2 -r website-node-14/www/ website-node-20/www/
(
printf '===== testing website-bunmine =====\n'
cd website-bunmine
yarn install --force
(cd analytics && yarn install --force)
if ! bun --bun run run-tests.mjs; then
# HACK(strager): Jasmine doesn't work right with Bun. See also hack in
# tools/quick-lint-js-node-test-runner/index.js.
if [[ "${?}" -ne 3 ]]; then
exit "${?}"
fi
fi
rm -rf www/
bun --bun run run-build.mjs www
)
diff -U2 -r website-node-14/www/ website-bunmine/www/
(
printf '===== testing website-bunnode =====\n'
cd website-bunnode
yarn install --force
(cd analytics && yarn install --force)
bun test
rm -rf www/
bun --bun run run-build.mjs www
)
diff -U2 -r website-node-14/www/ website-bunnode/www/
(
printf '===== testing website-bunbuns =====\n'
cd website-bunbuns
bun install --yarn
(cd analytics && bun install --yarn)
bun test
rm -rf www/
bun --bun run run-build.mjs www
)
diff -U2 -r website-node-14/www/ website-bunbuns/www/