language: elixir
elixir: '1.5.2'
otp_release: '20.0'

before_install:
  - sudo apt-get -qq update
  - sudo apt-get install -y --no-install-recommends rustc cargo
  - rustc --version
  - cargo --version

# TODO: not all files are reported to coveralls eg. PactMockServer is not there. Maybe the elixir version is the reason
# for this.
script: "MIX_ENV=test mix do deps.get, test && mix compile && mix coveralls.travis"
language: elixir
elixir: '1.5.2'
otp_release: '20.0'

before_install:
  - sudo apt-get -qq update
  - sudo apt-get install -y --no-install-recommends rustc cargo
  - rustc --version
  - cargo --version

env: MIX_ENV=test

# Compiling PactMockServer outputs a warning {:error, {:upgrade, 'Upgrade not supported by this NIF library.'}} which
# swallows coverage results for it. Running test twice solves this for now.
script:
 - mix test
 - mix coveralls.travis
Include missing file in coverage
Include missing file in coverage