Makefile 494 B

1234567891011121314151617181920212223
  1. ROOT = "./scripts"
  2. SEMVER_VERSION=$(shell grep version Cargo.toml | awk -F"\"" '{print $$2}' | head -n 1)
  3. .PHONY: init_database run_docker run_test
  4. init_database:
  5. POSTGRES_PORT=5433 ${ROOT}/init_database.sh
  6. docker_image:
  7. source $(ROOT)/docker_env.sh && docker-compose up -d db
  8. source $(ROOT)/docker_env.sh && docker-compose up -d backend
  9. local_server:
  10. cargo run
  11. docker_test:
  12. sh $(ROOT)/docker_test.sh
  13. local_test:
  14. # 🔥 Must run init_database first
  15. SQLX_OFFLINE=true cargo test