1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-22 16:03:25 +00:00
mobilizon/Makefile

29 lines
1,012 B
Makefile
Raw Normal View History

2018-12-17 10:24:26 +00:00
init:
@bash docker/message.sh "Start"
2018-12-17 10:24:26 +00:00
make start
setup: stop
@bash docker/message.sh "Compiling everything"
docker compose run --rm api bash -c 'mix deps.get; npm ci; npm run build:pictures; mix ecto.create; mix ecto.migrate'
migrate:
docker compose run --rm api mix ecto.migrate
logs:
docker compose logs -f
2018-12-17 10:24:26 +00:00
start: stop
@bash docker/message.sh "Starting Mobilizon with Docker"
docker compose up -d api
@bash docker/message.sh "Docker server started"
2018-12-17 10:24:26 +00:00
stop:
@bash docker/message.sh "Stopping Mobilizon"
docker compose down
@bash docker/message.sh "Mobilizon is stopped"
2019-04-17 15:17:27 +00:00
test: stop
@bash docker/message.sh "Running tests"
docker compose -f docker compose.yml -f docker compose.test.yml run api mix prepare_test
docker compose -f docker compose.yml -f docker compose.test.yml run api mix test $(only)
@bash docker/message.sh "Done running tests"
2021-10-19 07:50:24 +00:00
format:
docker compose run --rm api bash -c "mix format && mix credo --strict"
2021-10-19 07:50:24 +00:00
@bash docker/message.sh "Code is now ready to commit :)"
2018-12-17 10:24:26 +00:00
target: init