-
Notifications
You must be signed in to change notification settings - Fork 56
/
Makefile
33 lines (22 loc) · 1008 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
build:
./gradlew jar
clean:
./gradlew clean
test:
./gradlew test
TEMP_TEST_OUTPUT=/tmp/sdk-test-service.log
# Add any extra sdk-test-harness parameters here, such as -skip for tests that are
# temporarily not working.
TEST_HARNESS_PARAMS=
build-contract-tests:
@cd contract-tests && ../gradlew installDist
start-contract-test-service:
@contract-tests/service/build/install/service/bin/service
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:8000 -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 start-contract-test-service-bg run-contract-tests contract-tests