dist: bionic
language: elixir
elixir:
  - 1.10
  - 1.9
  - 1.8
  - 1.7
otp_release:
  - 22.2
  - 21.2 # 21.3 no longer available on Travis
matrix:
  exclude:
    - elixir: 1.7
      otp_release: 22.2
services:
  - redis-server
  - postgresql
  - mysql
before_script:
  - MIX_ENV=test PERSISTENCE=ecto RDBMS=postgres mix compile --warnings-as-errors
  - MIX_ENV=test PERSISTENCE=ecto RDBMS=postgres mix do ecto.create, ecto.migrate
  - rm -rf _build/test/lib/fun_with_flags
  - MIX_ENV=test PERSISTENCE=ecto RDBMS=mysql mix compile --warnings-as-errors
  - MIX_ENV=test PERSISTENCE=ecto RDBMS=mysql mix do ecto.create, ecto.migrate
  - rm -rf _build/test/lib/fun_with_flags
script:
  - mix test.all
notifications:
  email:
    on_success: never
    on_failure: never
cache:
  directories:
    - _build
    - deps

dist: bionic
language: elixir
elixir:
  - 1.10
  - 1.9
  - 1.8
  - 1.7
otp_release:
  - 22.3
  - 22.2
  - 21.2 # 21.3 no longer available on Travis
matrix:
  exclude:
    - elixir: 1.7
      otp_release: 22.3
    - elixir: 1.7
      otp_release: 22.2
services:
  - redis-server
  - postgresql
  - mysql
before_script:
  - MIX_ENV=test PERSISTENCE=ecto RDBMS=postgres mix compile --warnings-as-errors
  - MIX_ENV=test PERSISTENCE=ecto RDBMS=postgres mix do ecto.create, ecto.migrate
  - rm -rf _build/test/lib/fun_with_flags
  - MIX_ENV=test PERSISTENCE=ecto RDBMS=mysql mix compile --warnings-as-errors
  - MIX_ENV=test PERSISTENCE=ecto RDBMS=mysql mix do ecto.create, ecto.migrate
  - rm -rf _build/test/lib/fun_with_flags
script:
  - mix test.all
notifications:
  email:
    on_success: never
    on_failure: never
cache:
  directories:
    - _build
    - deps

Add OTP 22.3 to the Travis matrix
Add OTP 22.3 to the Travis matrix
