add readme
This commit is contained in:
parent
8c221fed78
commit
cf4f118c22
1 changed files with 37 additions and 0 deletions
37
README.md
Normal file
37
README.md
Normal 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
|
||||
```
|
Loading…
Add table
Reference in a new issue