language: elixir

sudo: required

services:
  - docker

stages:
  - check formatted
  - test

# Defaults for all stages.
elixir: "1.8"
otp_release: "21.2"

env:
  - DOCKER_COMPOSE_VERSION=1.22.0

script:
  - docker-compose up --detach
  - mix test --trace --exclude propcheck

jobs:
  include:
    - stage: test

    - otp_release: "20.3"
      elixir: "1.7"

    - otp_release: "19.3"
      elixir: "1.6"

    - stage: check formatted
      script: mix format --check-formatted
      sudo: false
      before_install: skip

before_install:
  - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
  - chmod +x docker-compose
  - sudo mv docker-compose /usr/local/bin
  - docker-compose --version
  - docker-compose build

language: elixir

sudo: required

services:
  - docker

stages:
  - check formatted
  - test

# Defaults for all stages.
elixir: "1.9"
otp_release: "22.0"

env:
  - DOCKER_COMPOSE_VERSION=1.22.0

script:
  - docker-compose up --detach
  - mix test --trace --exclude propcheck

jobs:
  include:
    - stage: test

    - otp_release: "21.3"
      elixir: "1.8"

    - otp_release: "20.3"
      elixir: "1.7"

    - otp_release: "19.3"
      elixir: "1.6"

    - stage: check formatted
      script: mix format --check-formatted
      sudo: false
      before_install: skip

before_install:
  - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
  - chmod +x docker-compose
  - sudo mv docker-compose /usr/local/bin
  - docker-compose --version
  - docker-compose build

Update Erlang/Elixir versions on Travis CI
Update Erlang/Elixir versions on Travis CI
