forked from endocrimes/Jay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (45 loc) · 1.32 KB
/
Makefile
File metadata and controls
54 lines (45 loc) · 1.32 KB
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
49
50
51
52
53
54
build:
@echo "Building Jay"
@swift build
debug: build
@echo "Debugging Jay"
@lldb .build/debug/JayExample
build-release:
@echo "Building Jay in Release"
@swift build --configuration release
xctest: xctest-osx xctest-ios xctest-tvos #TODO: watchOS when test bundles are available
xctest-osx:
set -o pipefail && \
xcodebuild \
-toolchain /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain \
-project XcodeProject/Jay.xcodeproj \
-scheme JayTests \
-destination 'platform=OS X,arch=x86_64' \
test \
| xcpretty
xctest-ios:
set -o pipefail && \
xcodebuild \
-toolchain /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain \
-project XcodeProject/Jay.xcodeproj \
-scheme JayTests-iOS \
-destination 'platform=iOS Simulator,name=iPhone 6s,OS=9.3' \
test \
| xcpretty
xctest-tvos:
set -o pipefail && \
xcodebuild \
-toolchain /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain \
-project XcodeProject/Jay.xcodeproj \
-scheme JayTests-tvOS \
-destination 'platform=tvOS Simulator,name=Apple TV 1080p,OS=9.2' \
test \
| xcpretty
example: build
@echo "Running example parsing"
.build/debug/JayExample
validate_spec:
@echo "Validating podspec"
pod lib lint Jay.podspec
clean:
rm -fr .build Packages