-
Notifications
You must be signed in to change notification settings - Fork 184
/
Makefile
executable file
·71 lines (57 loc) · 2.27 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
61
62
63
64
65
66
67
68
69
70
71
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_all:
set -o pipefail && env NSUnbufferedIO=YES \
xcodebuild \
-scheme "WalletConnect-Package" \
-destination "platform=iOS Simulator,name=iPhone 14" \
-derivedDataPath DerivedDataCache \
-clonedSourcePackagesDirPath ../SourcePackagesCache \
RELAY_HOST='$(RELAY_HOST)' \
PROJECT_ID='$(PROJECT_ID)' \
build-for-testing \
| xcbeautify
set -o pipefail && env NSUnbufferedIO=YES \
xcodebuild \
-project "Example/ExampleApp.xcodeproj" \
-scheme "BuildAll" \
-destination "platform=iOS Simulator,name=iPhone 14" \
-derivedDataPath DerivedDataCache \
-clonedSourcePackagesDirPath ../SourcePackagesCache \
RELAY_HOST='$(RELAY_HOST)' \
PROJECT_ID='$(PROJECT_ID)' \
CAST_HOST='$(CAST_HOST)' \
EXPLORER_HOST='$(EXPLORER_HOST)' \
JS_CLIENT_API_HOST='$(JS_CLIENT_API_HOST)' \
build-for-testing \
| xcbeautify
echo_ui_tests:
echo "EchoUITests disabled"
ui_tests:
echo "UI Tests disabled"
unit_tests:
./run_tests.sh --scheme WalletConnect-Package
integration_tests:
./run_tests.sh --scheme IntegrationTests --testplan IntegrationTests --project Example/ExampleApp.xcodeproj
relay_tests:
./run_tests.sh --scheme RelayIntegrationTests --project Example/ExampleApp.xcodeproj
notify_tests:
./run_tests.sh --scheme NotifyTests --project Example/ExampleApp.xcodeproj
smoke_tests:
./run_tests.sh --scheme IntegrationTests --testplan SmokeTests --project Example/ExampleApp.xcodeproj
x_platform_protocol_tests:
./run_tests.sh --scheme IntegrationTests --testplan XPlatformProtocolTests --project Example/ExampleApp.xcodeproj
release:
fastlane release_testflight username:$(APPLE_ID) token:$(TOKEN) relay_host:$(RELAY_HOST) project_id:$(PROJECT_ID) sentry_dsn:$(WALLETAPP_SENTRY_DSN) mixpanel_token:$(MIXPANEL_TOKEN) --env $(APP)