-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
37 lines (29 loc) · 990 Bytes
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
.PHONY: flake8
flake8:
@flake8 --exclude=.git *.py zealand tests
.PHONY: pylint
pylint:
PYTHONPATH=. pylint -d missing-docstring *.py zealand/ tests/
test:
coverage run --source tcms_api setup.py test
.PHONY: doc8
doc8:
doc8 README.rst
.PHONY: build
build:
./tests/check-build
.PHONY: integration_test
integration_test:
if [ -z $$(which geckodriver) ]; then \
pip install -q -U webdrivermanager; \
sudo webdrivermanager firefox --linkpath /usr/local/bin; \
fi
[ -d WebDemo ] || git clone --depth=1 https://github.com/robotframework/WebDemo.git
pip install -q -U -r WebDemo/requirements.txt
# demo web app is running at http://localhost:7272
python WebDemo/demoapp/server.py >/dev/null 2>&1 &
@sleep 2
# use Headless Firefox in CI
[ -z "$$DISPLAY" ] && sed -i "s/Firefox/Headless Firefox/" WebDemo/login_tests/*.robot
PYTHONPATH=. robot -N ITS --listener zealand.listener.KiwiTCMS -d WebDemo/ WebDemo/login_tests/ tests/
@killall -9 -q -u $$(whoami) python