-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
41 lines (32 loc) · 999 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
34
35
36
37
38
39
40
41
# SPEC_REPO format: <host.com>/<owner>/<project>
SPEC_REPO_URL_WITH_AUTH := https://$(SPEC_REPO_USERNAME):$(SPEC_REPO_PASSWORD)@$(SPEC_REPO)
SPEC_REPO_BRANCH_OR_COMMIT := $(if $(SPEC_REPO_BRANCH_OR_COMMIT),$(SPEC_REPO_BRANCH_OR_COMMIT),master)
TMPDIR = $(PWD)/tmp/out
.PHONY: generate test deploy
generate:
docker run -e LANGUAGES=typescript \
-e SPEC_REPO_URL="$(SPEC_REPO_URL_WITH_AUTH)" \
-e SPEC_REPO_BRANCH_OR_COMMIT="$(SPEC_REPO_BRANCH_OR_COMMIT)" \
-e SERVICES="app-registry identity ingest catalog collect provisioner action kvstore search ml forwarders streams" \
-p 5005:5005 \
-v $(TMPDIR):/opt/generated \
--rm \
scpcodegen:latest \
generate
rm -r src/services/*
cp -r tmp/out/typescript/* src/services/
rm -rf $(TMPDIR)
update_dependencies:
yarn update
test: token
yarn test
test_unit:
@yarn test:unit
test_integration: token
@yarn test:integration
test_specific:
sh ./ci/scripts/test_specific.sh
token:
sh ./ci/scripts/token.sh
deploy:
yarn release