-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (32 loc) · 1.11 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
#!/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 SRGAppearance -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 SRGAppearance -destination 'platform=tvOS Simulator,name=Apple TV' 2> /dev/null
@echo "... done.\n"
.PHONY: lint
lint:
@echo "Linting project..."
@swiftlint --fix && swiftlint
@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 " lint Lint project and fix issues"
@echo " rbenv Install needed ruby version if missing"
@echo " help Display this help message"