-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
24 lines (19 loc) · 924 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
.PHONY: init
init:
# ensure Homebrew is installed
which brew || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# set up dev tools
brew bundle
# ensure there's a .env file present
stat .env 2>/dev/null || echo "SENTRY_ORG=<your org slug>\nSENTRY_PROJECT=<your project slug>" > .env
# fixes CoreSimulator out of date error
# (happens on fresh xcode installation or MAS-managed major version update)
# requires password when run without sudo
xcodebuild -runFirstLaunch
# download iOS platform image
# (happens on fresh xcode installation or MAS-managed major version update)
xcodebuild -downloadPlatform iOS
.PHONY: test
test:
xcodebuild -project EmpowerPlant.xcodeproj -scheme EmpowerPlant -configuration Test -derivedDataPath build -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" -quiet test
slather coverage --configuration Test --verbose