-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
58 lines (49 loc) · 4.04 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
48
49
50
51
52
53
54
55
56
57
58
SHELL := /bin/bash
API_RAML ?= $(RAML_FILE)
IMPORT_RAML ?= $(RAML_FILE)
ML_RAML ?= $(RAML_FILE)
HISTORY_RAML ?= $(RAML_FILE)
CPUS := `./tools/numcpu.sh`
.PHONY: build build_api_sdk build_import_sdk build_import_sdk build_history_sdk gen_api_sdk gen_import_sdk gen_history_sdk
build: codegen_install gen_api_sdk gen_import_sdk gen_history_sdk prettify verify
build_api_sdk: codegen_install gen_api_sdk prettify verify
build_import_sdk: codegen_install gen_import_sdk prettify verify
build_history_sdk: codegen_install gen_history_sdk prettify verify
gen_api_sdk: generate_api
gen_import_sdk: generate_import
gen_history_sdk: generate_history
verify:
dotnet test --verbosity=normal commercetools.Sdk/Tests/commercetools.Api.Serialization.Tests -c Release
dotnet test --verbosity=normal commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests -c Release
dotnet test --verbosity=normal commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests -c Release
dotnet test --verbosity=normal commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests -c Release
codegen_install:
curl -o- -s https://raw.githubusercontent.com/vrapio/rmf-codegen/master/scripts/install.sh | bash
generate_api:
$(MAKE) -C commercetools.Sdk LIB_NAME="Api" GEN_RAML_FILE=../$(API_RAML) generate_sdk_with_predicates
generate_import:
$(MAKE) -C commercetools.Sdk LIB_NAME="ImportApi" GEN_RAML_FILE=../$(IMPORT_RAML) generate_sdk
generate_history:
$(MAKE) -C commercetools.Sdk LIB_NAME="HistoryApi" GEN_RAML_FILE=../$(HISTORY_RAML) generate_sdk
prettify:
dotnet format commercetools.Sdk/commercetools.Base.Abstractions/commercetools.Base.Abstractions.csproj --severity warn
dotnet format commercetools.Sdk/commercetools.Base.Client/commercetools.Base.Client.csproj --severity warn
dotnet format commercetools.Sdk/commercetools.Base.Registration/commercetools.Base.Registration.csproj --severity warn
dotnet format commercetools.Sdk/commercetools.Base.Serialization/commercetools.Base.Serialization.csproj --severity warn
dotnet format commercetools.Sdk/commercetools.Sdk.Api/commercetools.Sdk.Api.csproj whitespace
dotnet format commercetools.Sdk/commercetools.Sdk.Api/commercetools.Sdk.Api.csproj style --severity warn
dotnet format commercetools.Sdk/commercetools.Sdk.Api/commercetools.Sdk.Api.csproj analyzers --severity warn
dotnet format commercetools.Sdk/commercetools.Sdk.GraphQL.Api/commercetools.Sdk.GraphQL.Api.csproj --severity warn
dotnet format commercetools.Sdk/commercetools.Sdk.HistoryApi/commercetools.Sdk.HistoryApi.csproj --severity warn
dotnet format commercetools.Sdk/commercetools.Sdk.ImportApi/commercetools.Sdk.ImportApi.csproj --severity warn
dotnet format commercetools.Sdk/Examples/commercetools.Api.ApmExample/commercetools.Api.ApmExample.csproj --severity warn
dotnet format commercetools.Sdk/Examples/commercetools.Api.CheckoutApp/commercetools.Api.CheckoutApp.csproj --severity warn
dotnet format commercetools.Sdk/Examples/commercetools.Api.ConsoleApp/commercetools.Api.ConsoleApp.csproj --severity warn
dotnet format commercetools.Sdk/Examples/commercetools.Api.NewRelicExample/commercetools.Api.NewRelicExample.csproj --severity warn
dotnet format commercetools.Sdk/IntegrationTests/commercetools.Api.IntegrationTests/commercetools.Api.IntegrationTests.csproj --severity warn
dotnet format commercetools.Sdk/IntegrationTests/commercetools.GraphQL.Api.IntegrationTests/commercetools.GraphQL.Api.IntegrationTests.csproj --severity warn
dotnet format commercetools.Sdk/IntegrationTests/commercetools.ImportApi.IntegrationTests/commercetools.ImportApi.IntegrationTests.csproj --severity warn
dotnet format commercetools.Sdk/Tests/commercetools.Api.Serialization.Tests/commercetools.Api.Serialization.Tests.csproj --severity warn
dotnet format commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/commercetools.Sdk.Api.Tests.csproj --severity warn
dotnet format commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/commercetools.Sdk.HistoryApi.Tests.csproj --severity warn
dotnet format commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/commercetools.Sdk.ImportApi.Tests.csproj --severity warn