-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathMakefile
42 lines (29 loc) · 909 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
32
33
34
35
36
37
38
39
40
41
PROJECT=ContentfulPersistence.xcodeproj
WORKSPACE=ContentfulPersistence.xcworkspace
.PHONY: test setup lint coverage carthage clean open release
open:
open $(WORKSPACE)
clean:
rm -rf $(HOME)/Library/Developer/Xcode/DerivedData/*
clean_simulators: kill_simulator
xcrun simctl erase all
kill_simulator:
killall "Simulator" || true
test: clean
set -x -o pipefail && xcodebuild test -workspace $(WORKSPACE) \
-scheme ContentfulPersistence_macOS -destination 'platform=macOS' | bundle exec xcpretty -c
setup_env:
./Scripts/setup-env.sh
setup:
bundle install
git submodule sync
git submodule update --init --recursive
lint:
swiftlint
bundle exec pod lib lint ContentfulPersistenceSwift.podspec --verbose
coverage:
bundle exec slather coverage -s $(PROJECT)
carthage:
carthage build ContentfulPersistence --no-skip-current --platform all --use-xcframeworks
release:
./Scripts/release.sh