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
55 additions
and
16 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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
|
||
case $TRAVIS_OS_NAME in | ||
linux) | ||
# build dependencies | ||
sudo apt-get install ocaml-nox camlp4-extra ocaml-findlib | ||
|
||
# optional dependencies for running tests and building docs | ||
sudo apt-get install libprotoc-dev protobuf-compiler pandoc | ||
|
||
echo OCaml version | ||
ocaml -version | ||
;; | ||
|
||
osx) | ||
# build dependencies | ||
brew install opam | ||
|
||
# optional dependencies for running tests | ||
brew install protobuf | ||
|
||
echo OCaml version | ||
ocaml -version | ||
|
||
echo OPAM versions | ||
opam --version | ||
opam --git-version | ||
|
||
export OPAMYES=1 | ||
rm -rf ~/.opam | ||
|
||
opam init | ||
eval `opam config env` | ||
opam install ocamlfind camlp4 | ||
;; | ||
esac | ||
|
||
|
||
./configure | ||
make deps | ||
make | ||
|
||
make -C tests | ||
|
||
make -C doc html #test | ||
|
||
|
||
# ex: sw=4 ts=4 et |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
language: c | ||
script: "./travis-ci" | ||
before_install: | ||
- sudo apt-get install ocaml-nox camlp4-extra libfindlib-ocaml-dev | ||
- sudo apt-get install libprotoc-dev protobuf-compiler pandoc | ||
|
||
script: ./.travis-ci.sh | ||
os: | ||
- linux | ||
- osx | ||
branches: | ||
only: | ||
- master |