-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
35 lines (28 loc) · 1.05 KB
/
makefile
File metadata and controls
35 lines (28 loc) · 1.05 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
PROJECT = Fueling
buildServer.json: Build
xcode-build-server config -scheme "$(PROJECT)" -project *.xcodeproj
Build: $(PROJECT).xcodeproj/project.pbxproj
xcodebuild -scheme $(PROJECT)
$(PROJECT).xcodeproj/project.pbxproj: project.yml
xcodegen -c
# Unit tests
test:
xcodebuild -scheme $(PROJECT) test | xcbeautify | tee .test.out
# UI tests fail. Probably because of improper phone app setup. The
# xcrun ... lines are an attempt to fix that.
watchtest:
xcrun simctl shutdown 983670CF-B633-47E1-81E5-5B42688D0F5B
xcrun simctl boot 983670CF-B633-47E1-81E5-5B42688D0F5B
xcrun simctl launch 983670CF-B633-47E1-81E5-5B42688D0F5B org.snafu.Fueling -TESTING -UITEST
xcodebuild -scheme 'Fueling Watch App' \
-destination id=D428AA79-89F5-42CC-A19C-F02E757AFD07 \
test | xcbeautify | tee .test.out
# force project file rebuild
proj:
xcodegen
# remove files created during the build process
# do **not** use the -d option to git clean without excluding .jj
clean:
test -d $(PROJECTF).xcodeproj && xcodebuild clean || true
jj status
git clean -dfx -e .jj -e notes