-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
31 lines (26 loc) · 982 Bytes
/
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
#!/usr/bin/xcrun make -f
.PHONY: all
all: test-ios test-tvos
.PHONY: test-ios
test-ios:
@echo "Running iOS unit tests..."
@xcodebuild test -scheme SRGLogger-Package -destination 'platform=iOS Simulator,name=iPhone 11' 2> /dev/null
@echo "... done.\n"
.PHONY: test-tvos
test-tvos:
@echo "Running tvOS unit tests..."
@xcodebuild test -scheme SRGLogger-Package -destination 'platform=tvOS Simulator,name=Apple TV' 2> /dev/null
@echo "... done.\n"
.PHONY: rbenv
rbenv:
@echo "Installing needed ruby version if missing..."
@Scripts/rbenv-install.sh "./"
@echo "... done.\n"
.PHONY: help
help:
@echo "The following targets are available:"
@echo " all Build and run unit tests for all platforms"
@echo " test-ios Build and run unit tests for iOS"
@echo " test-tvos Build and run unit tests for tvOS"
@echo " rbenv Install needed ruby version if missing"
@echo " help Display this help message"