dist: trusty
sudo: required

language: elixir
elixir:
  - 1.5
otp_release:
  - 20.0

addons:
  postgresql: '9.4'

services:
  - postgresql

before_install:
  - wget http://emqtt.io/downloads/stable/ubuntu14_04-deb -O emqtt.deb
  - sudo dpkg -i emqtt.deb
  - sudo service emqttd stop

before_script:
  - cp ./etc/emqttd/plugins/emq_auth_pgsql.conf /etc/emqttd/plugins/emq_auth_pgsql.conf
  - cp ./etc/emqttd/emq.conf /etc/emqttd/emq.conf
  - sudo service emqttd start
  - mix do ecto.create, ecto.migrate

env:
  - MIX_ENV=test

script:
- mix coveralls.travis

dist: trusty
sudo: required

language: elixir
elixir:
  - 1.5
otp_release:
  - 20.0

addons:
  postgresql: '9.4'

services:
  - postgresql

before_install:
  - wget http://emqtt.io/downloads/stable/ubuntu14_04-deb -O emqtt.deb
  - sudo dpkg -i emqtt.deb
  - sudo service emqttd stop

before_script:
  - sudo cp ./etc/emqttd/plugins/emq_auth_pgsql.conf /etc/emqttd/plugins/emq_auth_pgsql.conf
  - sudo cp ./etc/emqttd/emq.conf /etc/emqttd/emq.conf
  - sudo service emqttd start
  - sudo emqttd_ctl plugins load emq_auth_pgsql
  - mix do ecto.create, ecto.migrate

env:
  - MIX_ENV=test

script:
- mix coveralls.travis

Load auth plugin for emqttd
Load auth plugin for emqttd
