-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtest.sh
executable file
·37 lines (28 loc) · 1.46 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
#!/usr/bin/env sh
###############################################################################
# #
# Apple CloudKit TypeScript Library #
# #
# Copyright (c) TypeScriptLibs and Contributors #
# #
# Licensed under the MIT License; you may not use this file except in #
# compliance with the License. You may obtain a copy of the MIT License at #
# https://typescriptlibs.org/LICENSE.txt #
# #
###############################################################################
cd "$(dirname "$0")/"
BASE="$(pwd)"
TARGET="tests-run/"
npx tsc --project "tests/server/"
cd "${TARGET}"
npm init -f -y
npm i "../tsl-apple-cloudkit.tgz"
cd "${BASE}"
curl -s "https://cdn.apple-cloudkit.com/ck/2/cloudkit.js" > "${TARGET}node_modules/tsl-apple-cloudkit/lib/index2.js"
openssl sha1 "${TARGET}node_modules/tsl-apple-cloudkit/lib/index.js"
openssl sha1 "${TARGET}node_modules/tsl-apple-cloudkit/lib/index2.js"
node "${TARGET}server/tests.js"
#npx tsc \
#--project "tests/client/"
#cp "tests/client/tests.html" "${TARGET}client/tests.html"
#open "release/tests/client/tests.html"