-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (22 loc) · 900 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
XCODEFLAGS=-project Thesi.xcodeproj \
-scheme Thesi \
-destination 'platform=macOS'
FULL_PRODUCT_NAME=Thesi.plugin
BUILT_PRODUCT_DIR=Products/Release/
INSTALL_DIR=~/Library/Application\ Support/MacDown/PlugIns
.PHONY: all carthage build test archive
all: carthage build
carthage:
carthage update --platform macOS
build:
xcodebuild $(XCODEFLAGS) -configuration Release | xcpretty && exit ${PIPESTATUS[0]}
test: clean-test
xcodebuild test $(XCODEFLAGS) -configuration Debug -resultBundlePath testResults | xcpretty && exit ${PIPESTATUS[0]}
travis-test: test
./xccov-to-sonarqube-generic.sh testResults/1_Test/action.xccovarchive/ > testResults/sonarqube-generic-coverage.xml
archive:
cd $(BUILT_PRODUCT_DIR); \
zip -FSr -1 $(FULL_PRODUCT_NAME).zip $(FULL_PRODUCT_NAME);
echo "Built distribution zip file: $(BUILT_PRODUCT_DIR)$(FULL_PRODUCT_NAME).zip"
clean-test:
rm -rf ./testResults