Makefile 688 B

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