mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-01-12 22:51:50 +08:00
28 lines
586 B
Bash
Executable File
28 lines
586 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# Configure RVM
|
|
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
|
|
source .rvmrc
|
|
|
|
# Git submodules
|
|
git submodule update --init
|
|
|
|
# Bundler & CocoaPods
|
|
bundle
|
|
pod install
|
|
|
|
# Run the build
|
|
rake server:stop || true
|
|
rake server:start
|
|
rake test
|
|
rake server:stop
|
|
|
|
# Build & Publish Docs
|
|
if [ -n $DOCS_DESTINATION ]; then
|
|
VERSION=`echo $GIT_BRANCH|sed -e 's/origin\///'`
|
|
if [ -n $VERSION ]; then
|
|
echo "Building documentation for branch $VERSION and publishing to '$DOCS_DESTINATION'"
|
|
rake docs:publish[$VERSION,$DOCS_DESTINATION,false]
|
|
fi
|
|
fi
|