|
|
@ -23,23 +23,22 @@ local load_cocoapods_cache = {
|
|
|
|
name: 'Load CocoaPods Cache',
|
|
|
|
name: 'Load CocoaPods Cache',
|
|
|
|
commands: [
|
|
|
|
commands: [
|
|
|
|
|||
|
|
|
|
|||
|
|
|
|
if [[ ! -f /Users/drone/.cocoapods_cache.valid ]]; then
|
|
|
|
LOOP_BREAK=0
|
|
|
|
rm -f /Users/drone/.cocoapods_cache.lock
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|||,
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
while test -e /Users/drone/.cocoapods_cache.lock; do
|
|
|
|
while test -e /Users/drone/.cocoapods_cache.lock; do
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
LOOP_BREAK=$((LOOP_BREAK + 1))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ LOOP_BREAK >= 600 ]]; then
|
|
|
|
|
|
|
|
'rm -f /Users/drone/.cocoapods_cache.lock'
|
|
|
|
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|||,
|
|
|
|
|||,
|
|
|
|
'touch /Users/drone/.cocoapods_cache.lock',
|
|
|
|
'touch /Users/drone/.cocoapods_cache.lock',
|
|
|
|
'rm -f /Users/drone/.cocoapods_cache.valid',
|
|
|
|
|
|
|
|
|||
|
|
|
|
|||
|
|
|
|
if [[ -d /Users/drone/.cocoapods_cache ]]; then
|
|
|
|
if [[ -d /Users/drone/.cocoapods_cache ]]; then
|
|
|
|
cp -r /Users/drone/.cocoapods_cache ./Pods
|
|
|
|
cp -r /Users/drone/.cocoapods_cache ./Pods
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|||,
|
|
|
|
|||,
|
|
|
|
'touch /Users/drone/.cocoapods_cache.valid',
|
|
|
|
|
|
|
|
'rm -f /Users/drone/.cocoapods_cache.lock'
|
|
|
|
'rm -f /Users/drone/.cocoapods_cache.lock'
|
|
|
|
]
|
|
|
|
]
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -49,24 +48,23 @@ local update_cocoapods_cache = {
|
|
|
|
name: 'Update CocoaPods Cache',
|
|
|
|
name: 'Update CocoaPods Cache',
|
|
|
|
commands: [
|
|
|
|
commands: [
|
|
|
|
|||
|
|
|
|
|||
|
|
|
|
if [[ ! -f /Users/drone/.cocoapods_cache.valid ]]; then
|
|
|
|
LOOP_BREAK=0
|
|
|
|
rm -f /Users/drone/.cocoapods_cache.lock
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|||,
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
while test -e /Users/drone/.cocoapods_cache.lock; do
|
|
|
|
while test -e /Users/drone/.cocoapods_cache.lock; do
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
LOOP_BREAK=$((LOOP_BREAK + 1))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ LOOP_BREAK >= 600 ]]; then
|
|
|
|
|
|
|
|
'rm -f /Users/drone/.cocoapods_cache.lock'
|
|
|
|
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|||,
|
|
|
|
|||,
|
|
|
|
'touch /Users/drone/.cocoapods_cache.lock',
|
|
|
|
'touch /Users/drone/.cocoapods_cache.lock',
|
|
|
|
'rm -f /Users/drone/.cocoapods_cache.valid',
|
|
|
|
|
|
|
|
|||
|
|
|
|
|||
|
|
|
|
if [[ -d ./Pods ]]; then
|
|
|
|
if [[ -d ./Pods ]]; then
|
|
|
|
rm -rf /Users/drone/.cocoapods_cache
|
|
|
|
rm -rf /Users/drone/.cocoapods_cache
|
|
|
|
cp -r ./Pods /Users/drone/.cocoapods_cache
|
|
|
|
cp -r ./Pods /Users/drone/.cocoapods_cache
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|||,
|
|
|
|
|||,
|
|
|
|
'touch /Users/drone/.cocoapods_cache.valid',
|
|
|
|
|
|
|
|
'rm -f /Users/drone/.cocoapods_cache.lock'
|
|
|
|
'rm -f /Users/drone/.cocoapods_cache.lock'
|
|
|
|
]
|
|
|
|
]
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -134,7 +132,7 @@ local update_cocoapods_cache = {
|
|
|
|
name: 'Build',
|
|
|
|
name: 'Build',
|
|
|
|
commands: [
|
|
|
|
commands: [
|
|
|
|
'mkdir build',
|
|
|
|
'mkdir build',
|
|
|
|
'xcodebuild archive -workspace Session.xcworkspace -scheme Session -derivedDataPath ./build/derivedData -configuration "App Store Release" -sdk iphoneos -archivePath ./build/Session.xcarchive -destination "generic/platform=iOS" -allowProvisioningUpdates CODE_SIGNING_ALLOWED=NO'
|
|
|
|
'xcodebuild archive -workspace Session.xcworkspace -scheme Session -derivedDataPath ./build/derivedData -configuration "App Store Release" -sdk iphoneos -archivePath ./build/Session.xcarchive -destination "generic/platform=iOS" -allowProvisioningUpdates CODE_SIGNING_ALLOWED=NO | ./Pods/xcbeautify/xcbeautify --is-ci'
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
update_cocoapods_cache,
|
|
|
|
update_cocoapods_cache,
|
|
|
|