Skip to content

Commit 08807b4

Browse files
committed
Add -p flag to mkdir commands
1 parent d6dd5da commit 08807b4

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/commands/test.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,25 @@ ENV ARGS=""
6262
RUN apt update
6363
RUN apt install -y nodejs
6464
RUN apt install -y npm
65+
RUN apt install -y cmake
66+
RUN apt install -y git
6567
COPY ./ ./
68+
RUN mkdir -p ./tests/.tools
69+
WORKDIR ./tests/.tools
70+
RUN git clone --recursive https://github.com/WebAssembly/wabt
71+
WORKDIR wabt
72+
RUN git submodule update --init
73+
RUN mkdir -p build
74+
WORKDIR build
75+
RUN cmake ..
76+
RUN cmake --build .
77+
WORKDIR /
6678
RUN npm run codegen
6779
RUN npm run build
6880
RUN apt install -y postgresql
6981
RUN apt install -y curl
70-
RUN apt-get update && apt-get -y install cmake protobuf-compiler
71-
RUN curl -OL https://github.com/LimeChain/matchstick/releases/download/${version || "0.2.1a"}/binary-linux-20
82+
RUN curl -OL ${url}
7283
RUN mv binary-linux-20 matchstick
73-
RUN chmod a+x matchstick
7484
CMD ./matchstick \${ARGS}`
7585

7686
let dir = 'tests/.docker'

0 commit comments

Comments
 (0)