From 0424d87a3dc4cfde741fe7c21fa60c5845ea6b92 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sun, 2 Oct 2016 21:10:18 -0600 Subject: [PATCH] build: try to get travis.yml to build on liunux and osx --- .travis.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index ee0171e5..c55cc717 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,19 @@ -sudo: required -dist: trusty +matrix: + include: + - os: linux + dist: trusty + sudo: required + - os: osx + osx_image: xcode7.2 language: cpp compiler: - clang - gcc before_install: - - sudo apt-get -qq update - - sudo apt-get install -y groff + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install groff; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y groff; fi script: - - ./build-linux-64.sh + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./build-osx.sh; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./build-linux-64.sh; fi