-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (23 loc) · 755 Bytes
/
Makefile
File metadata and controls
27 lines (23 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.PHONY: clean test start
help:
@echo "clean - remove junk files"
@echo "test - run pytest"
@echo "start - start gunicorn in production"
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -rf {} +
# -n 3 means run in parallel on three cores
# -x means stop after first test fail
# --lf means run only the last failing test
# --ff means run the fail tests first
# pytest -n 3 --cov-config=.coveragerc -x --lf
test:
# Python tests
pytest -n 2 -x --lf
# Raku tests
cd apps/slack/command_parser/ && raku t/test-command-parser.t
start:
make clean
NEW_RELIC_CONFIG_FILE=newrelic.ini newrelic-admin run-program supervisord -c supervisord.conf