-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·66 lines (47 loc) · 1.55 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
.PHONY : log install_buck build watch message targets pods audit debug test xcode_tests clean project audit
# Use local version of Buck
BUCK=tools/buck
log:
echo "Make"
install_buck:
curl https://jitpack.io/com/github/airbnb/buck/e5f6ac31436ae6be76880ebcf50607c98a9a8bbd/buck-e5f6ac31436ae6be76880ebcf50607c98a9a8bbd.pex --output tools/buck
chmod u+x tools/buck
update_cocoapods:
pod repo update
pod install
build:
$(BUCK) build //BuckTest:BuckTest
watch:
$(BUCK) build //App:ExampleWatchAppExtension#watchsimulator-i386
message:
$(BUCK) build //App:ExampleMessageExtension
debug:
$(BUCK) install //BuckTest:BuckTest --run
targets:
$(BUCK) targets //...
ci: install_buck targets build test project xcode_tests watch message
echo "Done"
test:
$(BUCK) test //App:ExampleAppCITests --test-runner-env FOO=BAR
ui_test:
$(BUCK) test //BuckTest:XCUITests --config apple.xctool_path=$(fbxctest)
pods:
$(BUCK) build //Pods:PromiseKit
$(BUCK) build //Pods:Braintree
$(BUCK) build //Pods:Bugsnag
# $(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:
rm -rf **/*.xcworkspace
rm -rf **/*.xcodeproj
rm -rf buck-out
kill_xcode:
killall Xcode || true
killall Simulator || true
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 //BuckTest:workspace
open BuckTest/BuckTest.xcworkspace