forked from hyperledger-aries/aries-framework-go-ext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (39 loc) · 1.42 KB
/
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
38
39
40
41
42
43
44
45
46
47
# Copyright SecureKey Technologies Inc.
#
# SPDX-License-Identifier: Apache-2.0
.PHONY: all
all: checks unit-test
.PHONY: unit-test
unit-test:
@scripts/check_unit.sh
.PHONY: vdr-trustbloc-bdd-test
vdr-trustbloc-bdd-test: generate-vdr-trustbloc-test-keys
@cd ./test/bdd/vdr/trustbloc/;go test -count=1 -v -cover . -p 1 -timeout=20m
.PHONY: vdr-orb-bdd-test
vdr-orb-bdd-test: generate-vdr-orb-test-keys
@cd ./test/bdd/vdr/orb/;go test -count=1 -run orb_ipfs -v -cover . -p 1 -timeout=20m
@cd ./test/bdd/vdr/orb/;UPDATE_DOCUMENT_STORE_ENABLED=true BATCH_TIMEOUT=10000 CAS_TYPE=local go test -count=1 -run orb_cas -v -cover . -p 1 -timeout=20m
.PHONY: checks
checks: license lint
.PHONY: license
license:
@scripts/check_license.sh
.PHONY: lint
lint:
scripts/check_lint.sh
.PHONY: generate-vdr-trustbloc-test-keys
generate-vdr-trustbloc-test-keys:
@rm -Rf ./test/bdd/vdr/trustbloc/fixtures/keys/tls
@mkdir -p -p test/bdd/vdr/trustbloc/fixtures/keys/tls
@docker run -i --rm \
-v $(abspath .):/opt/workspace/ext \
--entrypoint "/opt/workspace/ext/test/bdd/vdr/trustbloc/generate_test_keys.sh" \
frapsoft/openssl
.PHONY: generate-vdr-orb-test-keys
generate-vdr-orb-test-keys:
@rm -Rf ./test/bdd/vdr/orb/fixtures/keys/tls
@mkdir -p -p test/bdd/vdr/orb/fixtures/keys/tls
@docker run -i --rm \
-v $(abspath .):/opt/workspace/ext \
--entrypoint "/opt/workspace/ext/test/bdd/vdr/orb/generate_test_keys.sh" \
frapsoft/openssl