Include macOS in the Test stage

Signed-off-by: David Allsopp <david.allsopp@metastack.com>
This commit is contained in:
David Allsopp 2017-08-27 20:50:03 +01:00
parent 26b2c40606
commit 5fb66b9c24
2 changed files with 10 additions and 1 deletions

View File

@ -24,13 +24,19 @@ case "$TARGET" in
echo -en "travis_fold:end:ocaml\r"
if [ $WITH_OPAM -eq 1 ] ; then
echo -en "travis_fold:start:opam.init\r"
if [ "$TRAVIS_OS_NAME" = "osx" ] ; then
brew install aspcud
PREFIX=/Users/travis
else
PREFIX=/home/travis
fi
if [ ! -e ~/ocaml/bin/opam -o ! -e ~/.opam/lock -o "$OPAM_RESET" = "1" ] ; then
mkdir ~/ocaml/src
cd ~/ocaml/src
wget https://github.com/ocaml/opam/releases/download/1.2.2/opam-full-1.2.2.tar.gz
tar -xzf opam-full-1.2.2.tar.gz
cd opam-full-1.2.2
./configure --prefix=/home/travis/ocaml
./configure --prefix=$PREFIX/ocaml
make lib-ext
make all
make install

View File

@ -42,3 +42,6 @@ matrix:
apt:
packages:
- aspcud
- os: osx
env: OCAML_VERSION=4.05 OCAML_RELEASE=0 WITH_OPAM=1
stage: Test