exercism-ocaml/README.md

38 lines
624 B
Markdown
Raw Normal View History

2024-01-13 12:29:47 +01:00
# 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
```