<commit_before>#!/bin/sh

#  travis-tests.sh
#  handlebars-objc
#
#  Created by <NAME> on 3/27/14.
#  Copyright (c) 2014 Fotonauts. All rights reserved.

SCRIPT_DIR=`dirname $0`
ROOT_DIR="$SCRIPT_DIR/../.."

#
# run xctool ourselves.
#
# We need to set destination to iPad, otherwise test fails with
#  "The run destination iPhone is not valid for Running the scheme 'handlebars-objc-ios'."
#
# The bug seems to be fixed in XCode 5.1
#

xctool -project "$ROOT_DIR/src/handlebars-objc.xcodeproj" -scheme handlebars-objc-ios  -sdk iphonesimulator -destination name=iPad build test<commit_msg>looks like travis xctool version is outdated and doesn't support -destination param.<commit_after>#!/bin/sh

#  travis-tests.sh
#  handlebars-objc
#
#  Created by <NAME> on 3/27/14.
#  Copyright (c) 2014 Fotonauts. All rights reserved.

SCRIPT_DIR=`dirname $0`
ROOT_DIR="$SCRIPT_DIR/../.."

#
# run xctool ourselves.
#
# We need to set destination to iPad, otherwise test fails with
#  "The run destination iPhone is not valid for Running the scheme 'handlebars-objc-ios'."
#
# The bug seems to be fixed in XCode 5.1
#

xctool --version
xctool -project "$ROOT_DIR/src/handlebars-objc.xcodeproj" -scheme handlebars-objc-ios  -sdk iphonesimulator -destination name=iPad build test
{'fraction_non_alphanumeric': 0.11435331230283911, 'fraction_numerical': 0.01892744479495268, 'mean_word_length': 4.035714285714286, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4521851', 'n_tokens_mistral': 468, 'n_tokens_neox': 441, 'n_words': 140}