4
0

Makefile 658 B

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