FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-server-sdk/Makefile at main · bkodes/python-server-sdk · GitHub
bkodes
/
python-server-sdk
Public
forked from
launchdarkly/python-server-sdk
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-server-sdk
/
Makefile
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (28 loc) · 1.32 KB
Breadcrumbs
python-server-sdk
/
Makefile
Copy path
File metadata and controls
45 lines (28 loc) · 1.32 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
38
39
40
41
42
43
44
45
PYTEST_FLAGS
=-W error::SyntaxWarning
test
:
LD_SKIP_DATABASE_TESTS=1 pytest
$(
PYTEST_FLAGS
)
test-all
:
pytest
$(
PYTEST_FLAGS
)
lint
:
mypy --install-types --non-interactive --config-file mypy.ini ldclient testing
docs
:
cd
docs
&&
make html
.PHONY
: test test-all lint docs
TEMP_TEST_OUTPUT
=/tmp/contract-test-service.log
#
TEST_HARNESS_PARAMS can be set to add -skip parameters for any contract tests that cannot yet pass
#
TEST_HARNESS_PARAMS := $(TEST_HARNESS_PARAMS)
\
#
port 8000 and 9000 is already used in the CI environment because we're
#
running a DynamoDB container and an SSE contract test
PORT
=10000
build-contract-tests
:
@cd contract-tests
&&
pip install -r requirements.txt
start-contract-test-service
:
@cd contract-tests
&&
python service.py
$(
PORT
)
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/sdk-test-harness/v2/downloader/run.sh
\
|
VERSION=v2
PARAMS="-url
http
://localhost:
$(
PORT
)
-debug -stop-service-at-end
$(
TEST_HARNESS_PARAMS
)
" sh
contract-tests
: build-contract-tests start-contract-test-service-bg run-contract-tests
.PHONY
: build-contract-tests start-contract-test-service run-contract-tests contract-tests
Back
|
FazBrowse Home
|
New Git URL