language: bash

env:
  - SHUNIT_COLOR='always'

script:
  # Execute the unit tests.
  - ./shlib_test.sh

os:
  - linux
  - osx

addons:
  apt:
    packages:
      - ksh
      - zsh

matrix:
  include:
    - os: linux
      script:
        # Run the source through ShellCheck (http://www.shellcheck.net).
        - bash -c 'shopt -s globstar; shellcheck functions/*.sh standalone/*'
        - bash -c 'shopt -s globstar; echo functions/* |fmt -1 |grep -v .sh$ | xargs shellcheck -s sh'

language: bash

env:
  - SHUNIT_COLOR='always'

script:
  # Execute the unit tests.
  - ./shlib_test.sh

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

matrix:
  include:
    - os: linux
      dist: bionic  # Support Ubuntu Bionic 18.04 through at least Apr 2023.
    - os: linux
      dist: xenial  # Support Ubuntu Xenial 16.04 through at least Apr 2021.
    - os: linux
      dist: trusty  # Support Ubuntu Trusty 14.04 through at least Apr 2019.
    - os: osx
    - os: linux
      script:
        # Run the source through ShellCheck (http://www.shellcheck.net).
        - bash -c 'shopt -s globstar; shellcheck functions/*.sh standalone/*'
        - bash -c 'shopt -s globstar; echo functions/* |fmt -1 |grep -v .sh$ | xargs shellcheck -s sh'

Support more linux versions and mksh.
Support more linux versions and mksh.
