language: erlang
sudo: false

os: linux
otp_release: 18.0

matrix:
  include:
    - os: linux
      otp_release: 18.1
    - os: linux
      otp_release: 18.2
    - os: linux
      otp_release: 18.3
    - os: linux
      otp_release: 19.0
    - os: linux
      otp_release: 19.1
    - os: linux
      otp_release: 19.2

cache:
  directories:
    - node_modules

before_script:
  - nvm install 6.2 && nvm use 6.2
  - npm install

script:
  - npm run flow
  - CI=true npm run test
  - make compile && rm -rf .git && make test

language: erlang
sudo: false

os: linux
otp_release: 18.0

matrix:
  include:
    - os: linux
      otp_release: 18.1
    - os: linux
      otp_release: 18.2
    - os: linux
      otp_release: 18.3
    - os: linux
      otp_release: 19.0
    - os: linux
      otp_release: 19.1
    - os: linux
      otp_release: 19.2
    - os: linux
      otp_release: 19.3

cache:
  directories:
    - node_modules

before_script:
  - make rebar
  - nvm install 6.2 && nvm use 6.2
  - npm install

script:
  - npm run flow
  - CI=true npm run test
  - make compile && rm -rf .git && make test

Add make rebar to before_script
Add make rebar to before_script
