add readme

This commit is contained in:
Vladan Popovic 2024-01-13 12:29:47 +01:00
parent 8c221fed78
commit cf4f118c22
1 changed files with 37 additions and 0 deletions

37
README.md Normal file
View File

@ -0,0 +1,37 @@
# OCaml exercism exercises
To set up the envirnoment run:
```bash
nix develop
```
To test a single exercise with dune:
```bash
dune test hello-world
```
## Configuring the exercism CLI
First, get a token from exercism, than run:
```bash
exercism configure --token <token> --workspace /home/vladan/dev/exercism
```
## Using the exercism CLI
Download an exercise:
```bash
exercism download --track=ocaml --exercise=hello-world
```
To test a single exercise open the folder and run test, e.g.:
```bash
cd hello-world
exercism test
```
To submit solutions (from within the exercise folder):
```bash
exercism submit
```