Skip to content

Commit 594a7c0

Browse files
committed
Update
1 parent 6d4f0ba commit 594a7c0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/commands/test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = {
2121
let { print } = toolbox
2222

2323
// Read CLI parameters
24-
let { h, help, v, version, c, coverage, l, lib } = toolbox.parameters.options
24+
let { h, help, v, version, c, coverage } = toolbox.parameters.options
2525
let datasource = toolbox.parameters.first
2626

2727
// Support both long and short option variants
@@ -64,7 +64,7 @@ RUN apt install -y curl
6464
RUN npm install -g @graphprotocol/graph-cli
6565
6666
# Download the latest linux binary
67-
RUN curl -OL https://github.com/LimeChain/matchstick/releases/download/0.2.2a/binary-linux-20
67+
RUN curl -OL https://github.com/LimeChain/matchstick/releases/download/${version || "0.2.2a"}/binary-linux-20
6868
# Make it executable
6969
RUN chmod a+x binary-linux-20
7070
@@ -97,7 +97,7 @@ CMD ../binary-linux-20 \${ARGS}
9797
}
9898
})
9999

100-
exec(`docker build -f tests/.docker/Dockerfile -t matchstick . `, (error, stdout, stderr) => {
100+
exec(`docker build -t matchstick .`, (error, stdout, stderr) => {
101101
print.info('Building Matchstick image...');
102102

103103
if (error) {
@@ -109,8 +109,8 @@ CMD ../binary-linux-20 \${ARGS}
109109
print.info(`stderr: ${stderr}`)
110110
}
111111

112-
// TODO: try flags
113-
let runCommand = `docker run --rm matchstick`;
112+
//docker run -it --rm --mount type=bind,source=$PWD,target=/matchstick -e ARGS="-c" matchstick
113+
let runCommand = `docker run -it --rm --mount type=bind,source=$PWD,target=/matchstick -e ARGS="${datasource || ''}${coverage ? '-c' : ''}" matchstick`;
114114

115115
exec(runCommand, (error, stdout, stderr) => {
116116
print.info('Running Matchstick image...');

0 commit comments

Comments
 (0)