File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,15 @@ Container image for OCaml used by CodeRunner.
55## Usage
66
77``` bash
8- W=/workspace/
8+ W=/workspace
99# Create container
10- C= $( docker container create --rm -w $W ghcr.io/codewars/ocaml:latest \
11- sh -c ' ocamlbuild -quiet -use-ocamlfind test.native && exec ./test .native' )
10+ BUILD= " ocamlbuild -quiet -use-ocamlfind cwtest.native "
11+ C= $( docker container create --rm -w $W ghcr.io/codewars/ocaml:latest sh -c " $BUILD && exec ./cwtest .native" )
1212
13- # Write solution and tests in workspace/fixture.ml
14- # Then copy it inside a container
15- docker container cp workspace/fixture.ml $C :$W /fixture.ml
13+ # Copy solution and test files
14+ docker container cp ${1:- examples/ basic} /. $C :$W
1615
17- # Run tests
16+ # Start
1817docker container start --attach $C
1918```
2019
You can’t perform that action at this time.
0 commit comments