<commit_before>language: objective-c
osx_image: xcode7.2

# Set up our rubygems (slather and xcpretty, namely)
install: gem install slather xcpretty -N

script: 
# Start by nuking any lingering codecov files. These can cause issues when the xcode version changes
  - find . -name "*.gcda" -print0 | xargs -0 rm
  
# Build and Test the ADALiOS library
  - xcodebuild test -workspace ADAL.xcworkspace -scheme ADALiOS -configuration CodeCoverage -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' | xcpretty -c; exit ${PIPESTATUS[0]}

# Build the Test App (to make sure it doesn't break
  - xcodebuild -workspace ADAL.xcworkspace -scheme MyTestiOSApp -configuration CodeCoverage -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' | xcpretty -c; exit ${PIPESTATUS[0]}
  
# Build ADAL for Mac
  - xcodebuild test -workspace ADAL.xcworkspace -scheme "ADAL Mac" | xcpretty -c; exit ${PIPESTATUS[0]}

after_success:
# Run slather once to have it print out the results in the travis log
  - slather coverage -s ADAL/ADAL.xcodeproj
# And again to send it to coveralls
  - slather
<commit_msg>Updating travis to use xctool.<commit_after>language: objective-c
osx_image: xcode7.2

# Set up our rubygems (slather and xcpretty, namely)
install: 
 - brew update
 - brew install xctool
 - gem install slather -N

script: 
# Start by nuking any lingering codecov files. These can cause issues when the xcode version changes
  - find . -name "*.gcda" -print0 | xargs -0 rm
  
# Build and Test the ADALiOS library
  - xctool test -workspace ADAL.xcworkspace -scheme ADALiOS -configuration CodeCoverage -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest'

# Build the Test App (to make sure it doesn't break
  - xctool -workspace ADAL.xcworkspace -scheme MyTestiOSApp -configuration CodeCoverage -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
  
# Build and Test ADAL for Mac
  - xctool test -workspace ADAL.xcworkspace -scheme "ADAL Mac"

# Test ADAL for Mac 32-bit
  - xctool test -workspace ADAL.xcworkspace - scheme "ADAL MAC" CURRENT_ARCH=i386

after_success:
# Run slather once to have it print out the results in the travis log
  - slather coverage -s ADAL/ADAL.xcodeproj

{'fraction_non_alphanumeric': 0.0736970684039088, 'fraction_numerical': 0.007736156351791531, 'mean_word_length': 4.5588235294117645, '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': '1137952', 'n_tokens_mistral': 859, 'n_tokens_neox': 813, 'n_words': 277}