language: cpp

os:
  - linux
  - osx

compiler:
  - gcc
  - clang

osx_image:
  - xcode9.2 # macOS 10.13 (High Sierra)
  - xcode8.3 # macOS 10.12 (Sierra)
  - xcode7.3 # macOS 10.11 (El Capitan)
  - xcode6.4 # macOS 10.10 (Yosemite)

dist:
  - xenial
  - zesty

sudo: false

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository ppa:timsc/swig-3.0.12 -y; sudo apt-get -qq update; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap homebrew/php; brew update; fi

install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install swig3.0 cmake python-dev ruby-dev php-dev liblua5.3-dev octave-pkg-dev openjdk-8-jdk -y; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install swig php71 lua; fi

before_script:
  - mkdir build
  - cd build
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cmake ..; fi;
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cmake .. -DTINYSPLINE_WITH_PHP=FALSE -DTINYSPLINE_WITH_RUBY=FALSE; fi;

script:
  - cmake --build .

language: cpp

os:
  - linux
  - osx

compiler:
  - gcc
  - clang

osx_image: xcode9.2

dist: xenial

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository ppa:timsc/swig-3.0.12 -y; sudo apt-get -qq update; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap homebrew/php; brew update; fi

install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install swig3.0 cmake python-dev ruby-dev php-dev liblua5.3-dev octave-pkg-dev openjdk-8-jdk -y; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install swig php71 lua; fi

before_script:
  - mkdir build
  - cd build
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]];then cmake ..; fi;
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cmake .. -DTINYSPLINE_WITH_PHP=FALSE -DTINYSPLINE_WITH_RUBY=FALSE; fi;

script:
  - cmake --build .

Revert "Test against multiple macOS/Ubuntu versions"
Revert "Test against multiple macOS/Ubuntu versions"

This reverts commit cfc3628b4982c13b47d454b393b3b1f7ee82e226.
