#!/bin/bash
set -ev

npm run test-ci
npm run cobertura
npm run lint

if [ "${CI}" = "true" ]; then
  npm install coveralls
  cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
fi