forked from WalletConnect/WalletConnectSwiftV2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·60 lines (46 loc) · 1.94 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
59
60
XCODE_USER_TEMPLATES_DIR=/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File\ Templates
TEMPLATE_NAME=VIPER
TEMPLATES_DIR=Example/Templates/VIPER
EXISTS_FASTLANE = $(shell command -v fastlane 2> /dev/null)
install_templates:
mkdir -p $(XCODE_USER_TEMPLATES_DIR)
rm -fR $(XCODE_USER_TEMPLATES_DIR)/$(TEMPLATE_NAME)
cp -R $(TEMPLATES_DIR) $(XCODE_USER_TEMPLATES_DIR)
install_env:
ifeq "${EXISTS_FASTLANE}" ""
@echo Installing fastlane
sudo gem install fastlane --no-document
endif
@echo "All dependencies was installed"
build_dapp:
fastlane build scheme:DApp
build_wallet:
fastlane build scheme:WalletApp
ui_tests:
echo "UI Tests disabled"
unit_tests:
fastlane tests scheme:WalletConnect
integration_tests:
fastlane tests scheme:IntegrationTests testplan:IntegrationTests relay_host:$(RELAY_HOST) project_id:$(PROJECT_ID)
relay_tests:
fastlane tests scheme:RelayIntegrationTests relay_host:$(RELAY_HOST) project_id:$(PROJECT_ID)
smoke_tests:
xcodebuild \
-project Example/ExampleApp.xcodeproj \
-scheme IntegrationTests \
-testPlan SmokeTests \
-clonedSourcePackagesDirPath SourcePackagesCache \
-destination 'platform=iOS Simulator,name=iPhone 14' \
-derivedDataPath DerivedDataCache \
RELAY_HOST=$(RELAY_HOST) \
PROJECT_ID=$(PROJECT_ID) \
test
resolve_packages:
fastlane resolve scheme:WalletApp
release_wallet:
fastlane release_testflight username:$(APPLE_ID) token:$(TOKEN) relay_host:$(RELAY_HOST) project_id:$(PROJECT_ID) --env WalletApp
release_showcase:
fastlane release_testflight username:$(APPLE_ID) token:$(TOKEN) relay_host:$(RELAY_HOST) project_id:$(PROJECT_ID) --env Showcase
release_all:
fastlane release_testflight username:$(APPLE_ID) token:$(TOKEN) relay_host:$(RELAY_HOST) project_id:$(PROJECT_ID) --env WalletApp
fastlane release_testflight username:$(APPLE_ID) token:$(TOKEN) relay_host:$(RELAY_HOST) project_id:$(PROJECT_ID) --env Showcase