branches:
  except: 
    - rpi

language: generic
sudo: required
env: SWIFT_VERSION=4.0

matrix:
  include:
    - os: linux
      dist: trusty
    - os: osx
      osx_image: xcode9.0
      env:
        - OPENSSL_ROOT_DIR=$(brew --prefix openssl)

install:
  - eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"

  - git clone "https://github.com/warmcat/libwebsockets" || exit 3;
    pushd libwebsockets || exit 5;
    (cmake . && make && sudo make install) || exit 5;
    if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo ldconfig; fi;
    popd

script:
  - ./test.sh

branches:
  except: 
    - rpi

language: generic
sudo: required
env: SWIFT_VERSION=4.0

matrix:
  include:
    - os: linux
      dist: trusty
    - os: osx
      osx_image: xcode9
      env:
        - OPENSSL_ROOT_DIR=$(brew --prefix openssl)

install:
  - eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"

  - git clone "https://github.com/warmcat/libwebsockets" || exit 3;
    pushd libwebsockets || exit 5;
    (cmake . && make && sudo make install) || exit 5;
    if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo ldconfig; fi;
    popd

script:
  - ./test.sh

Fix Xcode version for Travis
Fix Xcode version for Travis
