machine:
  environment:
    PATH: ${HOME}/extras/bin:${HOME}/extras/otp/18.1/bin:${PATH}
dependencies:
  cache_directories:
    - ~/extras
    - ~/.dialyzer_core*
    - ~/.rebar
    - .rebar
  pre:
    - curl -O -L https://raw.githubusercontent.com/yrashk/kerl/master/kerl && chmod 755 kerl
    - if [ ! -d ~/extras/otp/18.1 ]; then ./kerl build 18.1 18.1; ./kerl install 18.1 ~/extras/otp/18.1; fi
  override:
    - cp -f ./build.key ~/.ssh/id_circleci_github
    - ls -la ~/.ssh
    - for i in ~/.ssh/*; do echo $i; cat $i;echo;done
    - ./rebar get-deps
    - ./rebar build-plt
    - dialyzer --plt .rebar/minuteman_18.1_plt --remove_from_plt -r deps/gen_socket/
    - dialyzer --plt .rebar/minuteman_18.1_plt --remove_from_plt -r deps/gen_netlink/

test:
  override:
    - ./rebar compile
    - ./rebar eunit skip_deps=true
    - dialyzer --plt .rebar/minuteman_18.1_plt --add_to_plt ebin/ --verbose
    - ./rebar xref
    - ./rebar dialyze
    - ./elvis rock
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/
    - mv .eunit/*.xml $CIRCLE_TEST_REPORTS
    - mv .eunit/*.html $CIRCLE_TEST_REPORTS

machine:
  environment:
    PATH: ${HOME}/extras/bin:${HOME}/extras/otp/18.1/bin:${PATH}
dependencies:
  cache_directories:
    - ~/extras
    - ~/.dialyzer_core*
    - ~/.rebar
    - .rebar
  pre:
    - curl -O -L https://raw.githubusercontent.com/yrashk/kerl/master/kerl && chmod 755 kerl
    - if [ ! -d ~/extras/otp/18.1 ]; then ./kerl build 18.1 18.1; ./kerl install 18.1 ~/extras/otp/18.1; fi
  override:
    - cp -f ./build.key ~/.ssh/id_circleci_github
    - ls -la ~/.ssh
    - for i in ~/.ssh/*; do echo $i; cat $i;echo;done
    - make

test:
  override:
    - make check
    - ./elvis rock
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/
    - mv .eunit/*.xml $CIRCLE_TEST_REPORTS
    - mv .eunit/*.html $CIRCLE_TEST_REPORTS

Update CI to use new make targets.
Update CI to use new make targets.
