Makefile 468 B

1234567891011121314151617181920
  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. docker_test:
  10. sh $(ROOT)/docker_test.sh
  11. local_test:
  12. # 🔥 Must run init_database first
  13. SQLX_OFFLINE=true cargo test