Skip to content

Commit

Permalink
Adds osx in .travis.yml, also adds ./install.sh to install the depend…
Browse files Browse the repository at this point in the history
…encies
  • Loading branch information
anuragagarwal561994 committed Aug 19, 2016
1 parent 381c76f commit 68cbf13
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
os:
- linux
- osx

language: cpp

compiler:
Expand All @@ -20,6 +24,9 @@ before_install:
- tar xf $LLVM_ARCHIVE_PATH -C $HOME/clang+llvm --strip-components 1
- export PATH=$HOME/clang+llvm/bin:$PATH
- ln -s $HOME/clang+llvm/bin/clang++ $HOME/clang+llvm/bin/clang++-3.7
- gem install md2man
- chmod +x install.sh
- ./install.sh

addons:
apt:
Expand All @@ -40,8 +47,8 @@ script:
- mkdir build
&& cd build
&& cmake ..
-DCMAKE_C_FLAGS="-Werror"
-DCMAKE_CXX_FLAGS="-Werror"
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then -DCMAKE_C_FLAGS="-Werror" fi
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then -DCMAKE_CXX_FLAGS="-Werror" fi
&& make VERBOSE=1
&& (make test || true)

Expand Down
21 changes: 21 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

if [[ $TRAVIS_OS_NAME == 'osx' ]]; then

# Install some custom requirements on OS X
# e.g. brew install pyenv-virtualenv

brew update;
brew install gnutls;
brew install libgcrypt;
brew install gcc5 --enable-cxx
brew install hiredis;
brew install bdw-gc;
brew install libev
brew install gettext

#FIXME: temporary hack for mac as gettext is not detected otherwise
ln -s /usr/local/Cellar/gettext/*/lib/libintl.dylib /usr/local/lib/
ln -s /usr/local/Cellar/gettext/*/include/libintl.h /usr/local/include

fi

0 comments on commit 68cbf13

Please sign in to comment.