elasticsearch-elixir/bin/test
Daniel Berkompas ea22625ff1 Remove dialyzer
2018-04-13 14:17:22 -07:00

16 lines
No EOL
618 B
Bash
Executable file

#!/usr/bin/env bash
#
# Continuous Integration Script
#
# This script contains all the test commands for this app, which will be run
# on the continuous integration server.
MIX_ENV=test mix format --check-formatted || { echo 'Please format code using `mix format`.'; exit 1; }
MIX_ENV=test mix compile --warnings-as-errors --force || { echo 'Please fix all compiler warnings.'; exit 1; }
MIX_ENV=test mix docs || { echo 'Elixir HTML docs were not generated!'; exit 1; }
if [ $CI ]; then
mix coveralls.travis || { echo 'Elixir tests failed!'; exit 1; }
else
mix test || { echo 'Elixir tests failed!'; exit 1; }
fi