testeranto 0.79.42 → 0.79.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
FROM node:18.18.0
|
|
2
|
+
|
|
3
|
+
# Install build dependencies
|
|
4
|
+
RUN apt-get update && \
|
|
5
|
+
apt-get install -y --no-install-recommends \
|
|
6
|
+
python3 \
|
|
7
|
+
make \
|
|
8
|
+
g++ && \
|
|
9
|
+
rm -rf /var/lib/apt/lists/*
|
|
10
|
+
|
|
11
|
+
RUN yarn global add node-gyp
|
|
12
|
+
|
|
13
|
+
RUN mkdir -p /usr/src/app
|
|
14
|
+
RUN mkdir -p /usr/src/app/docs
|
|
15
|
+
WORKDIR /usr/src/app
|
|
16
|
+
COPY package.json /usr/src/app
|
|
17
|
+
RUN yarn install
|
|
18
|
+
COPY ./src/ /usr/src/app/src
|
|
19
|
+
COPY ./subPackages/ /usr/src/app/subPackages
|
|
20
|
+
COPY ./testeranto.mts /usr/src/app/testeranto.mts
|
|
21
|
+
# COPY ./features.test.mts /usr/src/app/features.test.mts
|
|
22
|
+
COPY ./tsconfig.json /usr/src/app/tsconfig.json
|
|
23
|
+
|
|
24
|
+
RUN yarn init
|
|
25
|
+
RUN yarn report
|
|
26
|
+
# COPY ./docs/ /usr/src/app/docs
|
|
27
|
+
# # COPY ./testeranto.json /usr/src/app/testeranto.json
|
|
28
|
+
# # COPY prebuild.sh /usr/src/app
|
|
29
|
+
# # COPY postBuild.sh /usr/src/app
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# # RUN yarn build
|
|
33
|
+
|
|
34
|
+
# RUN cp ./node_modules/testeranto/dist/prebuild/TaskManBackEnd.mjs /usr/src/app/TaskManBackEnd.mjs
|
|
35
|
+
# RUN cp ./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.js /usr/src/app/TaskManFrontEnd.js
|
|
36
|
+
# RUN cp ./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.css /usr/src/app/TaskManFrontEnd.css
|
|
37
|
+
|
|
38
|
+
# # RUN ts-node-esm ./node_modules/testeranto/dist/prebuild/TaskManBackEnd.mjs
|
|
39
|
+
|
|
40
|
+
EXPOSE 3000
|
|
41
|
+
EXPOSE 27017
|
|
42
|
+
ENV MONGO_HOST=host.docker.internal
|
|
43
|
+
# # CMD ['yarn', 'testeranto-testrun', '&', 'yarn', 'testeranto-taskman']
|
|
44
|
+
CMD ["node", "./TaskManBackEnd.mjs"]
|
|
@@ -464,10 +464,10 @@ const Report = () => {
|
|
|
464
464
|
const src = test[0];
|
|
465
465
|
const runtime = test[1];
|
|
466
466
|
const s = [tests.buildDir, runtime].concat(src.split(".").slice(0, -1).join(".")).join("/");
|
|
467
|
-
const exitcode = await (await fetch(s + "/exitcode")).text();
|
|
468
|
-
const log = await (await fetch(s + "/log.txt")).text();
|
|
469
|
-
const testresults = await (await fetch(s + "/tests.json")).json();
|
|
470
|
-
const manifest = await (await fetch(s + "/manifest.json")).json();
|
|
467
|
+
const exitcode = await (await fetch("/docs" + "/" + s + "/exitcode")).text();
|
|
468
|
+
const log = await (await fetch("/docs" + "/" + s + "/log.txt")).text();
|
|
469
|
+
const testresults = await (await fetch("/docs" + "/" + s + "/tests.json")).json();
|
|
470
|
+
const manifest = await (await fetch("/docs" + "/" + s + "/manifest.json")).json();
|
|
471
471
|
res({ src, exitcode, log, testresults, manifest });
|
|
472
472
|
});
|
|
473
473
|
}));
|