-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (35 loc) · 1.15 KB
/
Dockerfile
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
FROM node:lts
# set environment variables for run time
ENV target_root_directory=
ENV target_include=
ENV analysis_include=
ENV preset=
ENV time=
# clone the repos
WORKDIR /app/
# Replace by the fork
RUN git clone https://github.com/syntest-framework/syntest-framework.git
WORKDIR /app/syntest-framework
RUN git fetch
RUN git checkout implement-decorators
WORKDIR /app/
RUN git clone https://github.com/syntest-framework/syntest-javascript.git
WORKDIR /app/syntest-javascript
RUN git fetch
RUN git checkout feat-implement-decorators
WORKDIR /app/
RUN git clone https://github.com/syntest-framework/syntest-javascript-benchmark.git
# Install and build core
WORKDIR /app/syntest-framework
RUN npm install
RUN npm run build
# Install, link and build javascript
WORKDIR /app/syntest-javascript
RUN npm install
RUN ./link.sh
RUN npm run build
# Install benchmark
WORKDIR /app/syntest-javascript-benchmark
COPY .syntest.json .
RUN npm run local:install
CMD timeout -k 25m 25m npx syntest javascript test --target-root-directory "${target_root_directory}" --target-include "${target_include}" --analysis-include "${analysis_include}" --preset "${preset}" --total-time ${time}