forked from bcylin/QuickTableViewController
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (36 loc) · 1.46 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
default: test
test:
bundle exec rake 'ci:build[Example]'
bundle exec rake 'ci:test[QuickTableViewController-iOS]'
make -B carthage
make -B docs
bump:
ifeq (,$(strip $(version)))
# Usage: make bump version=<number>
else
bundle exec rake bump[$(version)]
endif
carthage:
set -o pipefail && carthage build --no-skip-current --verbose | bundle exec xcpretty -c
coverage:
bundle exec slather coverage -s --input-format profdata --workspace QuickTableViewController.xcworkspace --scheme QuickTableViewController-iOS QuickTableViewController.xcodeproj
test-framework:
bundle exec fastlane scan
build-example:
xcodebuild -workspace QuickTableViewController.xcworkspace -scheme Example -sdk iphonesimulator -destination "name=iPhone 6s,OS=latest" clean build | xcpretty -c && exit ${PIPESTATUS[0]}
docs:
test -d docs || git clone -b gh-pages --single-branch https://github.com/bcylin/QuickTableViewController.git docs
cd docs && git fetch origin gh-pages && git clean -f -d
cd docs && git checkout gh-pages && git reset --hard origin/gh-pages
bundle exec jazzy --config .jazzy.yml
for file in "html" "css" "js" "json"; do \
echo "Cleaning whitespace in *."$$file ; \
find docs/output -name "*."$$file -exec sed -E -i '' -e 's/[[:blank:]]*$///' {} \; ; \
done
cp -rfv docs/output/* docs
cd docs && \
git add . && \
git commit -m "[CI] Update documentation at $(shell date +'%Y-%m-%d %H:%M:%S %z')"
update-docs:
make -B docs
cd docs && git push origin HEAD:gh-pages