-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
25 lines (16 loc) · 885 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
lint:
mypy --install-types --non-interactive --config-file mypy.ini ld_eventsource testing
.PHONY: lint
TEMP_TEST_OUTPUT=/tmp/sse-contract-test-service.log
build-contract-test-service:
@cd contract-tests && pip install -r requirements.txt
start-contract-test-service:
@cd contract-tests && python service.py
start-contract-test-service-bg:
@echo "Test service output will be captured in $(TEMP_TEST_OUTPUT)"
@make start-contract-test-service >$(TEMP_TEST_OUTPUT) 2>&1 &
run-contract-tests:
@curl -s https://raw.githubusercontent.com/launchdarkly/sse-contract-tests/v2.0.0/downloader/run.sh \
| VERSION=v2 PARAMS="-url http://localhost:8000 -debug -stop-service-at-end" sh
contract-tests: build-contract-test-service start-contract-test-service-bg run-contract-tests
.PHONY: build-contract-test-service start-contract-test-service run-contract-tests contract-tests