machine:
  environment:
    PATH: ${HOME}/extras/bin:${HOME}/extras/otp/18.3/bin:${PATH}
dependencies:
  cache_directories:
    - ~/extras
    - ~/.dialyzer_core*
    - ~/.rebar
    - .rebar
    - .cache
    - ~/.cache
  pre:
    - sudo service mongodb stop
    - sudo service rabbitmq-server stop
    - sudo service couchdb stop
    - sudo service zookeeper stop
    - sudo service mysql stop
    - sudo service postgresql stop
    - sudo service redis-server stop
    - curl -O -L https://raw.githubusercontent.com/yrashk/kerl/master/kerl && chmod 755 kerl
    - if [ ! -d ~/extras/otp/18.3 ]; then ./kerl build 18.3 18.3; ./kerl install 18.3 ~/extras/otp/18.3; fi:
        timeout: 1800
  override:
    - make

test:
  override:
    - make check
    - ./elvis rock
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/
    - mv TEST-*.xml $CIRCLE_TEST_REPORTS
    - cp -r _build/test/cover $CIRCLE_TEST_REPORTS

machine:
  environment:
    PATH: ${HOME}/extras/bin:${HOME}/extras/otp/19.0/bin:${PATH}
dependencies:
  cache_directories:
    - ~/extras
    - ~/.dialyzer_core*
    - ~/.rebar
    - .rebar
    - .cache
    - ~/.cache
  pre:
    - sudo service mongodb stop
    - sudo service rabbitmq-server stop
    - sudo service couchdb stop
    - sudo service zookeeper stop
    - sudo service mysql stop
    - sudo service postgresql stop
    - sudo service redis-server stop
    - curl -O -L https://raw.githubusercontent.com/yrashk/kerl/master/kerl && chmod 755 kerl
    - if [ ! -d ~/extras/otp/19.0 ]; then ./kerl build 19.0 19.0; ./kerl install 19.0 ~/extras/otp/19.0; fi:
        timeout: 1800
  override:
    - make

test:
  override:
    - make check
    - ./elvis rock
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/
    - mv TEST-*.xml $CIRCLE_TEST_REPORTS
    - cp -r _build/test/cover $CIRCLE_TEST_REPORTS

Upgrade Erlang for Circle CI to 19
Upgrade Erlang for Circle CI to 19
