e2e tests: init

and package.json files fix
This commit is contained in:
SamR1
2018-01-07 11:44:56 +01:00
parent 7c3ffa46bd
commit 3a94f9a1b2
7 changed files with 1960 additions and 118 deletions

View File

@ -2,13 +2,21 @@ include Makefile.config
-include Makefile.custom.config
.SILENT:
init-db:
$(FLASK) init_db
make-p:
# Launch all P targets in parallel and exit as soon as one exits.
set -m; (for p in $(P); do ($(MAKE) $$p || kill 0)& done; wait)
init-db:
$(FLASK) init_db
install: install-client install-python
install-client:
$(NPM) install
install-python:
$(PIP) install -r $(REQUIREMENTS)
serve-python:
$(FLASK) run --with-threads -h $(HOST) -p $(API_PORT)
@ -18,5 +26,8 @@ serve-react:
serve:
$(MAKE) P="serve-react serve-python" make-p
test-e2e:
$(NPM) test
test-python:
$(FLASK) test