<commit_before>
DERIVED_DATA=${1:-/tmp/PinLayout}

set -o pipefail && 

rm -rf $DERIVED_DATA &&

echo "===============================" &&
echo "fastlane iOS travis"             &&
echo "===============================" &&
time  bundle exec fastlane ios travis  && 


# echo "===============================" &&
# echo "fastlane macOS travis"           &&
# echo "===============================" &&
time  bundle exec fastlane mac travis &&


echo "===============================" &&
echo "iOS unit test"                   &&
echo "===============================" &&
time  xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-iOS -derivedDataPath $DERIVED_DATA -sdk iphonesimulator11.3 \
   -destination 'platform=iOS Simulator,name=iPhone 7 Plus,OS=11.3' \
   -destination 'platform=iOS Simulator,name=iPhone 7,OS=11.3' \
   -destination 'platform=iOS Simulator,name=iPhone 6,OS=10.2'\
   | xcpretty &&
    

echo "===============================" &&
echo "macOS unit test"                 &&
echo "===============================" &&
time  xcodebuild clean test -workspace PinLayout.xcworkspace -scheme PinLayout-macOS -derivedDataPath $DERIVED_DATA -sdk macosx10.13 \
   | xcpretty 


echo "===============================" &&
echo " Cocoapods: iOS Empty project"   &&
echo "===============================" &&
cd TestProjects/cocoapods/ios &&
rm -rf $DERIVED_DATA &&
pod install &&
time xcodebuild clean build -workspace PinLayout-iOS.xcworkspace -scheme PinLayout-iOS -sdk iphonesimulator11.3  -derivedDataPath $DERIVED_DATA \
    -destination 'platform=iOS Simulator,name=iPhone 7,OS=11.3' \
    | xcpretty &&
cd ../../.. 


echo "===============================" &&
echo " Cocoapods: macOS Empty project" &&
echo "===============================" &&
cd TestProjects/cocoapods/macos &&
rm -rf $DERIVED_DATA &&
pod install &&
time xcodebuild clean build -workspace PinLayout-macOS.xcworkspace -scheme PinLayout-macOS -sdk macosx10.13 -derivedDataPath $DERIVED_DATA \
    | xcpretty &&
cd ../../.. 


echo "===============================" &&
echo " Cocoapods: tvOS Empty project"  &&
echo "===============================" &&<commit_msg>disable temporary macOs test project<commit_after>
DERIVED_DATA=${1:-/tmp/PinLayout}

set -o pipefail && 

rm -rf $DERIVED_DATA &&

echo "===============================" &&
echo "fastlane iOS travis"             &&
echo "===============================" &&
time  bundle exec fastlane ios travis  && 


# echo "===============================" &&
# echo "fastlane macOS travis"           &&
# echo "===============================" &&
time  bundle exec fastlane mac travis &&


echo "===============================" &&
echo "iOS unit test"                   &&
echo "===============================" &&
time  xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-iOS -derivedDataPath $DERIVED_DATA -sdk iphonesimulator11.3 \
   -destination 'platform=iOS Simulator,name=iPhone 7 Plus,OS=11.3' \
   -destination 'platform=iOS Simulator,name=iPhone 7,OS=11.3' \
   -destination 'platform=iOS Simulator,name=iPhone 6,OS=10.2'\
   | xcpretty &&
    

echo "===============================" &&
echo "macOS unit test"                 &&
echo "===============================" &&
time  xcodebuild clean test -workspace PinLayout.xcworkspace -scheme PinLayout-macOS -derivedDataPath $DERIVED_DATA -sdk macosx10.13 \
   | xcpretty 


echo "===============================" &&
echo " Cocoapods: iOS Empty project"   &&
echo "===============================" &&
cd TestProjects/cocoapods/ios &&
rm -rf $DERIVED_DATA &&
pod install &&
time xcodebuild clean build -workspace PinLayout-iOS.xcworkspace -scheme PinLayout-iOS -sdk iphonesimulator11.3  -derivedDataPath $DERIVED_DATA \
    -destination 'platform=iOS Simulator,name=iPhone 7,OS=11.3' \
    | xcpretty &&
cd ../../.. 


# echo "===============================" &&
# echo " Cocoapods: macOS Empty project" &&
# echo "===============================" &&
# cd TestProjects/cocoapods/macos &&
# rm -rf $DERIVED_DATA &&
# pod install &&
# time xcodebuild clean build -workspace PinLayout-macOS.xcworkspace -scheme PinLayout-macOS -sdk macosx10.13 -derivedDataPath $DERIVED_DATA \
#     | xcpretty &&
# cd ../../.. 


echo "===============================" &&
echo " Cocoapods: tvOS Empty project"  &&
echo "===============================" &&
{'fraction_non_alphanumeric': 0.3087663080796521, 'fraction_numerical': 0.014190890363927672, 'mean_word_length': 4.303398058252427, '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': '44657', 'n_tokens_mistral': 1401, 'n_tokens_neox': 1234, 'n_words': 304}