Makefile 787 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. default: test-install prep test-run
  2. test-install:
  3. npm ci --no-fund
  4. codestyle: test-install
  5. npm run lint
  6. codestyle-fix: test-install
  7. npm run lint:fix
  8. prep:
  9. ifneq ($(SKIP_WEBUI),1)
  10. $(MAKE) -wC .. webui-dist
  11. endif
  12. $(MAKE) -wC ../service compile-currentenv
  13. test-run:
  14. # GitHub Actions fails badly on the default timeout of 2000ms
  15. npm test
  16. find-flakey-tests:
  17. echo "Running test-run infinately"
  18. sh -c "while make test-run; do :; done"
  19. find-flakey-tests-inf: test-install
  20. node scripts/find-flakey-tests-inf.mjs
  21. nginx:
  22. podman-compose up -d nginx
  23. clean:
  24. podman-compose down
  25. getsnapshot:
  26. rm -rf /opt/OliveTin-snapshot/*
  27. gh run download -D /opt/OliveTin-snapshot/
  28. .PHONY: default test-install codestyle codestyle-fix test-run find-flakey-tests find-flakey-tests-inf prep