This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# grabbing version number from the info.plist of the app | |
COMERCIAL_VERSION=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Info.plist` | |
# grabbing number of commits in the current branch to create a version number | |
BUILD_VERSION=`git rev-list HEAD | wc -l | tr -d ' ' | tr -d '\n'` | |
# grabbing the commit hash for future reference | |
GIT_VERSION=`git show --abbrev-commit | grep '^commit' | sed 's/commit //' | tr -d '\n'` | |
# export values to preprocessor file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mogenerator --model "${INPUT_FILE_PATH}" \ | |
--output-dir "${PROJECT_DIR}/XXXXX/Source/Model" \ | |
--template-var arc=true | |
${DEVELOPER_BIN_DIR}/momc \ | |
-XD_MOMC_TARGET_VERSION=10.7 \ | |
"${INPUT_FILE_PATH}" "${TARGET_BUILD_DIR}/${EXECUTABLE_FOLDER_PATH}/${INPUT_FILE_BASE}.mom" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
appledoc \ | |
--project-name ${PROJECT} \ | |
--project-company "Sergio Estevao" \ | |
--company-id com.sergioestevao \ | |
--docset-atom-filename "${PROJECT}.atom" \ | |
--docset-feed-url "http://localhost/help/${PROJECT}/%DOCSETATOMFILENAME" \ | |
--docset-package-url "http://localhost/help/${PROJECT}/%DOCSETPACKAGEFILENAME" \ | |
--docset-fallback-url "http://localhost/help/${PROJECT}/" \ | |
--publish-docset \ | |
--logformat xcode \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import path | |
export PATH=${PATH}:/usr/local/bin | |
#import what we have in bash_profile | |
source ~/.bash_profile | |
#check for oclint | |
hash oclint &> /dev/null | |
if [ $? -eq 1 ]; then | |
echo >&2 "oclint not found, analyzing stopped" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import path | |
export PATH=${PATH}:/usr/local/bin | |
#import what we have in bash_profile | |
source ~/.bash_profile | |
#check for oclint | |
hash oclint &> /dev/null | |
if [ $? -eq 1 ]; then | |
echo >&2 "oclint not found, analyzing stopped" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcrun -log -sdk iphoneos PackageApplication "$OUTPUTDIR/$APPNAME.app" -o "$OUTPUTDIR/$APPNAME.ipa" -sign "$DEVELOPER_NAME" -embed "$PROVISIONING_PROFILE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First build the archive | |
xcodebuild archive -scheme $SCHEME_NAME -archivePath $ARCHIVE_NAME | |
# Then export it to an IPA | |
xcodebuild -exportArchive -archivePath $ARCHIVE_NAME.xcarchive -exportPath $ARCHIVE_NAME -exportFormat ipa -exportProvisioningProfile "$PROVISIONING_PROFILE" -exportSigningIdentity "$DEVELOPER_NAME" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sha=`echo $TRAVIS_COMMIT_RANGE | cut -d '.' -f 4` | |
full_sha=`git rev-parse $sha` | |
travis_url="https://travis-ci.org/${TRAVIS_REPO_SLUG}/builds/${TRAVIS_BUILD_ID}/" | |
if [[ $errors -eq 0 ]]; then | |
state="success" | |
message="OCLinted OK!" | |
else | |
state="failure" | |
message="OCLint detected new issues!" | |
fi |
OlderNewer