forked from segmentio/analytics-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (21 loc) · 998 Bytes
/
Copy pathMakefile
File metadata and controls
24 lines (21 loc) · 998 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
test:
pylint --rcfile=.pylintrc --reports=y --exit-zero analytics | tee pylint.out
# fail on pycodestyle errors on the code change
git diff origin/master..HEAD analytics | pycodestyle --ignore=E501 --diff --statistics --count
pycodestyle --ignore=E501 --statistics analytics > pycodestyle.out || true
coverage run --branch --include=analytics/\* --omit=*/test* setup.py test
release:
python setup.py sdist bdist_wheel upload
e2e_test:
if [ "$(RUN_E2E_TESTS)" != "true" ]; then \
echo "Skipping end to end tests."; \
else \
set -e; \
echo "Running end to end tests..."; \
wget https://github.com/segmentio/library-e2e-tester/releases/download/0.2.0/tester_linux_amd64; \
chmod +x tester_linux_amd64; \
chmod +x e2e_test.sh; \
./tester_linux_amd64 -segment-write-key="$(SEGMENT_WRITE_KEY)" -webhook-auth-username="$(WEBHOOK_AUTH_USERNAME)" -webhook-bucket="$(WEBHOOK_BUCKET)" -path='./e2e_test.sh'; \
echo "End to end tests completed!"; \
fi
.PHONY: test release e2e_test