-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (41 loc) · 1.3 KB
/
Makefile
File metadata and controls
57 lines (41 loc) · 1.3 KB
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
.PHONY : log install_buck build targets pods audit debug test xcode_tests clean project audit
# Use system version of Buck
BUCK=buck
log:
echo "Make"
install_buck:
curl https://jitpack.io/com/github/airbnb/buck/b652367c2b017ddce7fc0f94cb62ef6fd4138cf0/buck-b652367c2b017ddce7fc0f94cb62ef6fd4138cf0.pex --output tools/buck
chmod u+x tools/buck
update_cocoapods:
pod repo update
pod install
build:
$(BUCK) build app
debug:
$(BUCK) install app --run --simulator-name 'Phone: iPhone XS'
targets:
$(BUCK) targets //...
ci: targets build test project xcode_tests
echo "Done"
test:
$(BUCK) test //App:Tests --all --exclude ui --test-runner-env FOO=BAR
ui_test:
$(BUCK) test //App:UITests
# pods:
# $(BUCK) build //Pods:PromiseKit
# $(BUCK) build //Pods:Braintree
# $(BUCK) build //Pods:Nimble
# audit:
# $(BUCK) audit rules App/BUCK > Config/Gen/App-BUCK.py
# $(BUCK) audit rules Pods/BUCK > Config/Gen/Pods-BUCK.py
clean:
killall Xcode || true
killall Simulator || true
rm -rf **/*.xcworkspace
rm -rf **/*.xcodeproj
$(BUCK) clean
# xcode_tests: project
# xcodebuild build test -workspace App/ExampleApp.xcworkspace -scheme ExampleApp -destination 'platform=iOS Simulator,name=iPhone 8,OS=latest' | xcpretty && exit ${PIPESTATUS[0]}
project: clean
$(BUCK) project app
open App/SwiftObjcBuck.xcworkspace