Makefile 976 B

1234567891011121314151617181920212223242526272829
  1. # This file was auto-generated, do not edit it directly.
  2. # Instead run bin/update_build_scripts from
  3. # https://github.com/sharelatex/sharelatex-dev-environment
  4. # Version: 1.0.1
  5. BUILD_NUMBER ?= local
  6. BRANCH_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
  7. PROJECT_NAME = document-updater
  8. DOCKER_COMPOSE_FLAGS ?= -f docker-compose.yml
  9. DOCKER_COMPOSE := docker-compose ${DOCKER_COMPOSE_FLAGS}
  10. clean:
  11. rm -f app.js
  12. rm -rf app/js
  13. rm -rf test/unit/js
  14. rm -rf test/acceptance/js
  15. test: test_unit test_acceptance
  16. test_unit:
  17. @[ -d test/unit ] && $(DOCKER_COMPOSE) run --rm test_unit -- ${MOCHA_ARGS} || echo "document-updater has no unit tests"
  18. test_acceptance: test_clean # clear the database before each acceptance test run
  19. @[ -d test/acceptance ] && $(DOCKER_COMPOSE) run --rm test_acceptance -- ${MOCHA_ARGS} || echo "document-updater has no acceptance tests"
  20. test_clean:
  21. $(DOCKER_COMPOSE) down -t 0
  22. .PHONY: clean test test_unit test_acceptance test_clean build publish