Skip to content

Commit 95f6e09

Browse files
committed
Add CircleCI
1 parent bff7af3 commit 95f6e09

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

circle.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
dependencies:
2+
override:
3+
- sudo add-apt-repository -y ppa:avsm/ppa
4+
- sudo apt-get install -y ocaml ocaml-native-compilers opam
5+
- opam init --auto-setup --dot-profile=~/.bashrc # Modify dotfiles
6+
7+
test:
8+
override:
9+
- ./test-with-version.sh 4.02.3
10+
- ./test-with-version.sh 4.03.0
11+
- ./test-with-version.sh 4.04.0

test-with-version.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
export OCAML_VERSION="${1}"
6+
7+
make clean
8+
opam switch "${OCAML_VERSION}"
9+
eval `opam config env`
10+
opam update
11+
opam pin add -y ReasonProject .
12+
make
13+
./Test.native
14+
git diff --exit-code

0 commit comments

Comments
 (0)