Add a script that updates RxSwift jazzy docs

This commit is contained in:
Jesse Farless 2016-06-10 14:51:40 +02:00
parent 49ccdac810
commit 56e6d09b0f
1 changed files with 22 additions and 0 deletions

22
scripts/update-jazzy-docs.sh Executable file
View File

@ -0,0 +1,22 @@
. scripts/common.sh
function updateDocs() {
WORKSPACE=$1
SCHEME=$2
CONFIGURATION=$3
SIMULATOR=$4
MODULE=$5
ensure_simulator_available "${SIMULATOR}"
SIMULATOR_GUID=`simulator_ids "${SIMULATOR}"`
DESTINATION='id='$SIMULATOR_GUID''
set -x
killall Simulator || true
jazzy --config .jazzy.yml -m "${MODULE}" -x -workspace,"${WORKSPACE}",-scheme,"${SCHEME}",-configuration,"${CONFIGURATION}",-derivedDataPath,"${BUILD_DIRECTORY}",-destination,"$DESTINATION"
set +x
}
./scripts/update-jazzy-config.rb
updateDocs Rx.xcworkspace "RxExample-iOS" "Release" $DEFAULT_IOS9_SIMULATOR "RxSwift"