From f255511a7c9fa922ae0f1e0660b7fc401670d36c Mon Sep 17 00:00:00 2001 From: nah <2trill2spill@gmail.com> Date: Sun, 4 Sep 2016 09:34:59 -0500 Subject: [PATCH] Test on both Linux and OSX. Switch to C language so we can specify operating systems. We have to install ruby 2.1 via rvm because the ruby interpreter on travis ci crashes when running rake ci, however that same version of ruby works fine on my local machine. This work around adds about 6 Minutes to the build and should be replaced as soon as possible to speed up builds. --- .travis.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7e64a0c..84f0098 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,19 @@ -language: ruby -rvm: - - "1.9.3" - - "2.0.0" +language: c + +matrix: + include: + - os: osx + compiler: clang + osx_image: xcode7.3 + - os: linux + sudo: required + dist: trusty + compiler: gcc + +before_install: + - if [ "$TRAVIS_OS_NAME" == "osx" ]; then rvm install 2.1 && rvm use 2.1 && ruby -v; fi script: + - rake --version - cd test && rake ci - make -s - cd ../extras/fixture/test && rake ci