37 lines
624 B
Markdown
37 lines
624 B
Markdown
# 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
|
|
```
|