language: bash

env:
  - SHUNIT_COLOR='always'

script:
  # Execute the unit tests.
  - ./test_runner

addons:
  apt:
    packages:
      - ksh
      - mksh
      - zsh

matrix:
  include:
    # Ubuntu (https://en.wikipedia.org/wiki/Ubuntu).
    - os: linux
      # Support Ubuntu Focal 20.04 through at least Apr 2025.
      dist: focal
    - os: linux
      # Support Ubuntu Bionic 18.04 through at least Apr 2023.
      dist: bionic
    - os: linux
      # Support Ubuntu Xenial 16.04 through at least Apr 2021.
      dist: xenial
    - os: linux
      # Support Ubuntu Trusty 14.04 through at least Apr 2019.
      dist: trusty

    # Other OSes.
    - os: freebsd
    - os: osx

    # Run the source through ShellCheck (http://www.shellcheck.net).
    - os: linux
      script:
        - shellcheck shunit2 *_test.sh
        - shellcheck -s sh shunit2_test_helpers

branches:
  only:
  - master
  - 2.1.x
  # Tags, e.g. v.2.1.8.
  - /^v\d+\.\d+(\.\d+)?(-\S*)?$/

language: bash

env:
  - SHUNIT_COLOR='always'

script:
  # Execute the unit tests.
  - ./test_runner

addons:
  apt:
    packages:
      - ksh
      - mksh
      - zsh

matrix:
  include:
    ### Ubuntu (https://en.wikipedia.org/wiki/Ubuntu).
    - os: linux
      # Support Ubuntu Focal 20.04 through at least Apr 2025.
      dist: focal
    - os: linux
      # Support Ubuntu Bionic 18.04 through at least Apr 2023.
      dist: bionic
    - os: linux
      # Support Ubuntu Xenial 16.04 through at least Apr 2021.
      dist: xenial
    - os: linux
      # Support Ubuntu Trusty 14.04 through at least Apr 2019.
      dist: trusty

    ### Other OSes.
    # [2021-10-22 kward] Disable FreeBSD builds until they actually work.
    #- os: freebsd
    - os: osx

    ### Run the source through ShellCheck (http://www.shellcheck.net).
    - os: linux
      script:
        - shellcheck shunit2 *_test.sh
        - shellcheck -s sh shunit2_test_helpers

branches:
  only:
  - master
  - 2.1.x
  # Tags, e.g. v.2.1.8.
  - /^v\d+\.\d+(\.\d+)?(-\S*)?$/

Disable FreeBSD builds until they actually work.
Disable FreeBSD builds until they actually work.
