language: cpp
jobs:
    include:
        - os: linux
          dist: xenial
          env:
            - NAME="Linux build"
            - COMPILER="gcc"
            - DEPLOY_APPIMAGE="true"
          services: docker
          cache: ccache
          compiler: gcc
          install: "docker pull rpcs3/rpcs3-travis-xenial:1.4"
          script: 'travis_wait docker run -v $(pwd):/rpcs3 -v "$HOME/.ccache":/root/.ccache --env-file .ci/travis.env rpcs3/rpcs3-travis-xenial:1.4 /rpcs3/.ci/build-linux.sh'
        - os: linux
          dist: xenial
          env:
            - NAME="Linux build"
            - COMPILER="clang"
          services: docker
          cache: ccache
          compiler: clang
          install: "docker pull rpcs3/rpcs3-travis-xenial:1.4"
          script: 'travis_wait docker run -v $(pwd):/rpcs3 -v "$HOME/.ccache":/root/.ccache --env-file .ci/travis.env rpcs3/rpcs3-travis-xenial:1.4 /rpcs3/.ci/build-linux.sh'
        # - os: freebsd
        #   compiler: clang
        #   cache: ccache
        #   install: "./.ci/install-freebsd.sh"
        #   script: "./.ci/build-freebsd.sh"
        # - os: osx
        #   osx_image: xcode11.3
        #   addons:
        #     homebrew:
        #         packages:
        #             - ccache
        #             - glew
        #             - ninja
        #             - qt
        #   script: "/bin/bash -ex .ci/build-mac.sh"
        #   cache: ccache
    allow_failures:
        - os: osx

git:
  depth: false # Unshallow clone to obtain proper GIT_VERSION
  submodules: false
