mobilizon.chapril.org-mobil.../Makefile

24 lines
702 B
Makefile
Raw Normal View History

2018-12-17 11:24:26 +01:00
init:
@bash docker/message.sh "start"
make start
start: stop
2019-05-19 11:38:09 +02:00
@bash docker/message.sh "starting Mobilizon with docker"
docker-compose up -d api
docker-compose exec api sh -c "cd js && yarn install && cd ../"
docker-compose exec api mix deps.get
docker-compose exec api mix compile
docker-compose exec api mix ecto.create
docker-compose exec api mix ecto.migrate
2018-12-17 11:24:26 +01:00
@bash docker/message.sh "started"
stop:
2019-05-19 11:38:09 +02:00
@bash docker/message.sh "stopping Mobilizon"
2018-12-17 11:24:26 +01:00
docker-compose down
@bash docker/message.sh "stopped"
2019-04-17 17:17:27 +02:00
test: stop
@bash docker/message.sh "Running tests"
docker-compose -f docker-compose.yml -f docker-compose.test.yml run api mix test
@bash docker/message.sh "Tests runned"
2018-12-17 11:24:26 +01:00
target: init