Skip to content

Commit

Permalink
Use GitHub Actions
Browse files Browse the repository at this point in the history
This replaces Travis CI which hasn't been working well for OCaml
projects recently.
  • Loading branch information
bbc2 committed Jul 2, 2021
1 parent 37112ee commit 7addf65
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 18 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: main

on:
- pull_request
- push

jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- 4.10.x
- 4.09.x
- 4.08.x
- 4.07.x
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: opam pin add ppx_factory.dev . --no-action
- run: opam depext ppx_factory --yes --with-doc --with-test
- run: opam install . --deps-only --with-doc --with-test
- run: opam exec -- dune build @default @runtest
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[![Build Status](https://travis-ci.org/cryptosense/ppx_factory.svg?branch=master)](https://travis-ci.org/cryptosense/ppx_factory)

# ppx_factory

`ppx_factory` is an OCaml preprocessor to derive factory methods and default values from type
Expand Down

0 comments on commit 7addf65

Please sign in to comment.