<commit_before>#!/bin/sh
set -e

# Build configurations
scheme="parent"
configuration="DevRelease"
ipaDir="build/ipa/"


# Clean
mkdir -p ${ipaDir}
rm -rf ${ipaDir}*.ipa


# Provisioning configurations
AdHocProvisioning="com.malalaoshi.app-AdHoc"
security -v unlock-keychain -p ${KEYCHAIN_PASSWORD} ${KEYCHAIN_PATH}
security set-keychain-settings -l -u -t 3600 ${KEYCHAIN_PATH}
security list-keychains -s ${KEYCHAIN_PATH}


# Unit Test
# xcodebuild test -workspace mala-ios.xcworkspace -scheme ${scheme} -sdk iphonesimulator -configuration ${configuration} -destination 'platform=iOS Simulator,name=iPhone 6,OS=8.4'
xctool -workspace mala-ios.xcworkspace -scheme ${scheme} -configuration DevRelease -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 5s,OS=8.4' test -freshInstall

# Compile Project DevRelease
scheme="parent"
buildPath="build/archive/${scheme}_dev_release.xcarchive"
ipaName="${ipaDir}${scheme}_dev_release.ipa"

xcodebuild -workspace mala-ios.xcworkspace -scheme ${scheme} -configuration ${configuration} archive -archivePath ${buildPath}
xcodebuild -exportArchive -exportFormat IPA -archivePath ${buildPath} -exportPath ${ipaName} -exportProvisioningProfile "${AdHocProvisioning}"


# Compile Project PrdRelease
configuration="PrdRelease"
buildPath="build/archive/${scheme}_prd_release.xcarchive"
ipaName="${ipaDir}${scheme}_prd_release.ipa"

xcodebuild -workspace mala-ios.xcworkspace -scheme ${scheme} -configuration ${configuration} archive -archivePath ${buildPath}
xcodebuild -exportArchive -exportFormat IPA -archivePath ${buildPath} -exportPath ${ipaName} -exportProvisioningProfile "${AdHocProvisioning}"<commit_msg>IOS-300 update build script<commit_after>#!/bin/sh
set -e

# Build configurations
scheme="parent"
configuration="DevRelease"
ipaDir="build/ipa/"


# Clean
mkdir -p ${ipaDir}
rm -rf ${ipaDir}*.ipa


# Provisioning configurations
AdHocProvisioning="com.malalaoshi.app-AdHoc"
security -v unlock-keychain -p ${KEYCHAIN_PASSWORD} ${KEYCHAIN_PATH}
security set-keychain-settings -l -u -t 3600 ${KEYCHAIN_PATH}
security list-keychains -s ${KEYCHAIN_PATH}


# Unit Test
# xcodebuild test -workspace mala-ios.xcworkspace -scheme ${scheme} -sdk iphonesimulator -configuration ${configuration} -destination 'platform=iOS Simulator,name=iPhone 6,OS=8.4'
xctool -workspace mala-ios.xcworkspace -scheme ${scheme} -configuration DevRelease -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 5s,OS=8.4' test 

# Compile Project DevRelease
scheme="parent"
buildPath="build/archive/${scheme}_dev_release.xcarchive"
ipaName="${ipaDir}${scheme}_dev_release.ipa"

xcodebuild -workspace mala-ios.xcworkspace -scheme ${scheme} -configuration ${configuration} archive -archivePath ${buildPath}
xcodebuild -exportArchive -exportFormat IPA -archivePath ${buildPath} -exportPath ${ipaName} -exportProvisioningProfile "${AdHocProvisioning}"


# Compile Project PrdRelease
configuration="PrdRelease"
buildPath="build/archive/${scheme}_prd_release.xcarchive"
ipaName="${ipaDir}${scheme}_prd_release.ipa"

xcodebuild -workspace mala-ios.xcworkspace -scheme ${scheme} -configuration ${configuration} archive -archivePath ${buildPath}
xcodebuild -exportArchive -exportFormat IPA -archivePath ${buildPath} -exportPath ${ipaName} -exportProvisioningProfile "${AdHocProvisioning}"
{'fraction_non_alphanumeric': 0.12631578947368421, 'fraction_numerical': 0.0069172932330827065, 'mean_word_length': 7.072815533980583, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4462696', 'n_tokens_mistral': 1070, 'n_tokens_neox': 1055, 'n_words': 237}