sudo: required
services: 
    - docker
language: cpp
compiler: g++
install:
    - if [ $TRAVIS_OS_NAME == osx ]; then 
           brew update 
        && brew unlink  openssl 
        && brew install openssl 
        && brew link --force openssl
        && brew unlink  cmake
        && brew install cmake 
        && brew link --force cmake;
      fi
script: 
    - test $TRAVIS_OS_NAME = osx && mkdir build \
      && cd build && cmake .. && make && make test;
    - test $TRAVIS_OS_NAME = linux && docker build -t cpp-multihash . \
      && docker run -v $PWD:/work/source/ --privileged -it cpp-multihash;
branches:
    only:
    - master
notification:
    email: true
os:
- linux
- osx

sudo: required
services: 
    - docker
language: cpp
compiler: g++
install:
    - if [ $TRAVIS_OS_NAME == osx ]; then 
           brew update 
        && brew unlink  openssl 
        && brew install openssl 
        && brew link --force openssl
        && brew unlink  cmake
        && brew install cmake 
        && brew link --force cmake;
      fi
script: 
    - if [ $TRAVIS_OS_NAME == osx ]; then 
          mkdir build && cd build && cmake .. && make && make test;
      fi
    - if [ $TRAVIS_OS_NAME == linux ]; then 
          docker build -t jbrooker/cpp-multihash . && docker run \
          -v $PWD:/work/source/ --privileged -it jbrooker/cpp-multihash;
      fi
branches:
    only:
    - master
notification:
    email: true
os:
- linux
- osx

Update to Linux Docker build
Update to Linux Docker build
