language: bash

# See https://github.com/amaiorano/vectrexy/blob/master/.travis.yml
# for ideas on installing vcpkg

matrix:
  include:
    # macOS
    - os: osx
      compiler: clang
      script:
        - python test/run.py
        - make ws

    # # Linux
    # - os: linux
    #   dist: xenial
    #   script: 
    #     - python test/run.py
    #     - make ws
    #   env:
    #     - CC=gcc
    #     - CXX=g++

    # Clang + Linux disabled for now
    - os: linux
      dist: xenial
      script: python test/run.py
      env:
        - CC=clang 
        - CXX=clang++

    # Windows
    - os: windows
      env:
        - CMAKE_PATH="/c/Program Files/CMake/bin"
      script: 
        - export PATH=$CMAKE_PATH:$PATH
        - cmake -DUSE_TLS=1 -DUSE_WS=1 -DUSE_MBED_TLS=1 .
        - cmake --build --parallel .
        - python test/run.py