Skip to content

Commit e76a437

Browse files
committed
Add bin/run (for tests)
1 parent ac9d789 commit e76a437

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

bin/run

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
W=/workspace/
2+
# Create container
3+
C=$(docker container create --rm -w $W ghcr.io/codewars/lean:latest lean test/SolutionTest.lean)
4+
5+
# Copy files from the current directory
6+
# src/Solution.lean
7+
# src/Preloaded.lean
8+
# test/SolutionTest.lean
9+
docker container cp ./. $C:$W
10+
11+
# Run tests
12+
docker container start --attach $C

0 commit comments

Comments
 (0)