Permalink
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (23 sloc) 700 Bytes
.DEFAULT_GOAL := run
DOCKER_IMAGE ?= operable/cog:latest-dev
# Note: 'run' does not reset the database, in case you have data
# you're actively using. If this is your first time, run `make
# reset-db` before executing this recipe.
run:
iex -S mix phoenix.server
reset-db:
mix ecto.reset --no-start
docker:
scripts/get_cogctl.sh
docker build -t $(DOCKER_IMAGE) .
.PHONY: docker
test-prepare:
MIX_ENV=test mix ecto.migrate --no-deps-check
test-unit: test-prepare
mix test --exclude=integration
test-integration: test-prepare
mix test --only=integration:general
test-slack: test-prepare
mix test --only=integration:slack
test-hipchat: test-prepare
mix test --only=integration:hipchat