language: bash

matrix:
  include:
    - os: linux
      dist: bionic # 18.04 (EOL @ April 2023)
    - os: linux
      dist: xenial # 16.04 (EOL @ April 2021)
    - os: osx
      osx_image: xcode12 # 10.15.5
    - os: osx
      osx_image: xcode11.3 # 10.14.6
    - os: osx
      osx_image: xcode10.1 # 10.13
    - os: osx
      osx_image: xcode9.2 # 10.12

install: true
env: REQVER=1.14.6

addons:
  homebrew:
    packages:
    - fish
    update: true
  apt:
    packages:
    - fish
    update: true

script: >-
  bash tests/install.sh &&
  source ~/.bashrc &&
  bash tests/validate.sh &&
  bash tests/remove.sh
  
  bash tests/install-custom-version.sh &&
  source ~/.bashrc &&
  bash tests/custom-version-validate.sh &&
  bash tests/remove.sh

  SHELL=$(which fish) bash tests/install.sh
language: bash

matrix:
  include:
    - os: linux
      dist: bionic # 18.04 (EOL @ April 2023)
    - os: linux
      dist: xenial # 16.04 (EOL @ April 2021)
    - os: osx
      osx_image: xcode12 # 10.15.5
    - os: osx
      osx_image: xcode11.3 # 10.14.6
    - os: osx
      osx_image: xcode10.1 # 10.13

install: true
env: REQVER=1.14.6

addons:
  homebrew:
    packages:
    - fish
    update: true
  apt:
    packages:
    - fish
    update: true

script: >-
  bash tests/install.sh &&
  source ~/.bashrc &&
  bash tests/validate.sh &&
  bash tests/remove.sh
  
  bash tests/install-custom-version.sh &&
  source ~/.bashrc &&
  bash tests/custom-version-validate.sh &&
  bash tests/remove.sh

  SHELL=$(which fish) bash tests/install.sh
Remove Xcode 9.2 from the tests as homebrew is broken
Remove Xcode 9.2 from the tests as homebrew is broken
