Skip to content

Commit

Permalink
Add more information about how to use repo
Browse files Browse the repository at this point in the history
  • Loading branch information
mukul-rathi committed Jan 17, 2020
1 parent 713b410 commit 4ae47cd
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
32 changes: 30 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Ocaml Testing Template

[![Build Status](https://travis-ci.com/mukul-rathi/ocaml-testing-template.svg?branch=master)](https://travis-ci.com/mukul-rathi/ocaml-testing-template) [![Coverage Status](https://coveralls.io/repos/github/mukul-rathi/ocaml-testing-template/badge.svg?branch=master)](https://coveralls.io/github/mukul-rathi/ocaml-testing-template?branch=master)
[![CircleCI](https://circleci.com/gh/mukul-rathi/ocaml-testing-template.svg?style=svg)](https://circleci.com/gh/mukul-rathi/ocaml-testing-template) [![Coverage Status](https://coveralls.io/repos/github/mukul-rathi/ocaml-testing-template/badge.svg?branch=master)](https://coveralls.io/github/mukul-rathi/ocaml-testing-template?branch=master)

[Generated Documentation]( http://ocamltest.mukulrathi.com/) generating using Odoc.
## The Makefile

The Makefile consists of a list of useful commands:

`make install` installs all the opam dependencies needed to use this repo

`make lint` lints your code and also checks it has been auto-formatted

`make hook` sets the git pre-commit hook to a hook that formats and lints your code.

`make doc` generates the documentation and copies it into a `docs/` folder in the root of the repo`.

`make coverage` runs the test coverage, and generates HTML output of coverage in `_coverage/`

## Generating Coveralls.io Reports

In your Circle CI project, you need to set the environment variable `$COVERALLS_REPO_TOKEN` that Coveralls provides you.

## Generating Documentation

The repo uses GitHub Pages to display the [generated documentation](http://ocamltest.mukulrathi.com/).

In the `_circleci/config.yml` file, you will need to change the "provision custom domain" step to your custom domain (or remove the step entirely).

The documentation deployment is run in a separate docker container in the CircleCI.

Be sure to update the `git config user.email` and `git config user.name` in the config file to your GitHub username and email.

For this to run successfully you need to **grant CircleCI write access** to your GitHub repo (by default the deploy key is read-only).
4 changes: 2 additions & 2 deletions lib.opam → hello_world.opam
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
opam-version: "2.0"
synopsis: "A template for Ocaml Tooling"
version: "0.4"
maintainer: "msr45@cam.ac.uk"
version: "1.0"
maintainer: "mukul.rathi@gmail.com"
authors: ["Mukul Rathi"]
homepage: "https://github.com/mukul-rathi/ocaml-testing-template"
bug-reports: "https://github.com/mukul-rathi/ocaml-testing-template/issues"
Expand Down
3 changes: 2 additions & 1 deletion src/dune
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(library
(public_name lib)
(name lib)
(public_name hello_world)
(preprocess
(pps bisect_ppx --conditional))
(lint
Expand Down

0 comments on commit 4ae47cd

Please sign in to comment.