Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
*.cmxs | ||
*.cmxa | ||
.c9revisions | ||
setup.data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
language: c | ||
script: bash -ex travis-ci.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash -ex | ||
|
||
# OPAM version to install | ||
export OPAM_VERSION=1.0.0 | ||
# OPAM packages needed to build tests | ||
export OPAM_PACKAGES='ounit' | ||
|
||
# install ocaml from apt | ||
sudo apt-get update -qq | ||
sudo apt-get install -qq ocaml | ||
|
||
# install opam | ||
curl -L https://github.com/OCamlPro/opam/archive/${OPAM_VERSION}.tar.gz | tar xz -C /tmp | ||
pushd /tmp/opam-${OPAM_VERSION} | ||
./configure | ||
make | ||
sudo make install | ||
opam init -y | ||
eval `opam config env` | ||
popd | ||
|
||
# install packages from opam | ||
opam install -q -y ${OPAM_PACKAGES} | ||
|
||
# compile & run tests (an OASIS DevFiles project might use ./configure --enable-tests && make test) | ||
./configure --enable-tests | ||
make test |