forked from contentful/contentful.objc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
48 lines (35 loc) · 1.25 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
43
44
45
46
47
48
WORKSPACE=ContentfulSDK.xcworkspace
.PHONY: all clean doc example example-static pod really-clean static-lib test
clean:
rm -rf build Examples/UFO/build Examples/*.zip compile_commands.json .gutter.json
really-clean: clean
rm -rf Pods $(HOME)/Library/Developer/Xcode/DerivedData/*
all: test example-static
pod:
pod install
example:
set -o pipefail && xcodebuild clean build -workspace $(WORKSPACE) \
-scheme ContentfulDeliveryAPI \
-sdk iphonesimulator | xcpretty -c
set -o pipefail && xcodebuild clean build -workspace $(WORKSPACE) \
-scheme 'UFO Example' \
-sdk iphonesimulator | xcpretty -c
example-static: static-lib
cd Examples/UFO; set -o pipefail && xcodebuild clean build \
-sdk iphonesimulator | xcpretty -c
static-lib:
pod repo update >/dev/null
pod package ContentfulDeliveryAPI.podspec
@cd Examples/UFO/Distribution; ./update.sh
cd Examples; ./ship_it.sh
rm -rf ContentfulDeliveryAPI-*/
test: example
pod lib testing # Slather currently breaks on Travis :(
lint:
set -o pipefail && xcodebuild clean build -workspace $(WORKSPACE) -dry-run \
-scheme ContentfulDeliveryAPI \
-sdk iphonesimulator clean build|xcpretty -r json-compilation-database \
-o compile_commands.json
oclint-json-compilation-database
doc:
pod lib docstats