Skip to content

CircleCI 2.0 build image for jbuilder-based OCaml projects

Notifications You must be signed in to change notification settings

rrdelaney/circleci2-jbuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

circleci2-jbuilder

CircleCI 2.0 build image for jbuilder-based OCaml projects

Example usage

version: 2
jobs:
  build:
    docker:
      - image: rrdelaney/circleci2-jbuilder
        environment:
          TERM: xterm
    steps:
      - checkout
      - restore_cache:
          keys:
            - opam-deps-{{ checksum "MyProject.opam" }}
      - run:
          name: 'Install OCaml dependencies'
          command: 'eval $(opam config env) && opam install -y <my-dependencies>'
      - save_cache:
          key: opam-deps-{{ checksum "MyProject.opam" }}
          paths:
            - ~/.opam
      - run:
          name: 'Build JS files'
          command: 'eval $(opam config env) && jbuilder build src/cli.exe'
      - run:
          name: 'Install JS dependencies'
          command: 'npm install'
      - run:
          name: 'Run tests'
          command: 'npm test'

About

CircleCI 2.0 build image for jbuilder-based OCaml projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published