-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
42 lines (35 loc) · 1.37 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
#!/usr/bin/xcrun make -f
CONFIGURATION_REPOSITORY_URL=https://github.com/SRGSSR/srgletterbox-apple-configuration.git
CONFIGURATION_COMMIT_SHA1=8a13ff0fd2610217db1e02bd23a4738e05ceb0eb
CONFIGURATION_FOLDER=Configuration
.PHONY: all
all: setup test-ios test-tvos
.PHONY: test-ios
test-ios:
@echo "Running iOS unit tests..."
@xcodebuild test -scheme SRGLetterbox -destination 'platform=iOS Simulator,name=iPhone 13' 2> /dev/null
@echo "... done.\n"
.PHONY: test-tvos
test-tvos:
@echo "Running tvOS unit tests..."
@xcodebuild test -scheme SRGLetterbox -destination 'platform=tvOS Simulator,name=Apple TV' 2> /dev/null
@echo "... done.\n"
.PHONY: setup
setup:
@echo "Setting up the project..."
@Scripts/checkout-configuration.sh "${CONFIGURATION_REPOSITORY_URL}" "${CONFIGURATION_COMMIT_SHA1}" "${CONFIGURATION_FOLDER}"
@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 " setup Setup project"
@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"