Skip to content

Commit

Permalink
Enable Travis-CI build on osx
Browse files Browse the repository at this point in the history
  • Loading branch information
alavrik committed Oct 13, 2014
1 parent ec20c29 commit b57b90f
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 16 deletions.
51 changes: 51 additions & 0 deletions .travis-ci.sh
@@ -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
9 changes: 4 additions & 5 deletions .travis.yml
@@ -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
11 changes: 0 additions & 11 deletions travis-ci

This file was deleted.

0 comments on commit b57b90f

Please sign in to comment.