<commit_before># local staging entry script

export APP_NAME="tnswebformclient"
export 'DEVELOPER_NAME="iPhone Distribution: <NAME> (C4F7EVGZVS)"'
export PROFILE_NAME="tnswebformprofile"
export NODE_VERSION="6" NPM_VERSION="3" TNS_VERSION="rc"
export 'CODE_SIGN_IDENTITY="iPhone Distribution: <NAME> (C4F7EVGZVS)"'
export PROVISIONING_PROFILE="b96261dd-8691-46d4-89f4-1cfb195e10a3"
export DEVELOPMENT_TEAM="C4F7EVGZVS"
export 'XCBUILD_SAFE_SH="/Users/travis/build/fyhao/tns-webform-client/scripts/xcbuild-safe.sh"'

export TRAVIS_BRANCH="staging"


#Before Install
chmod +x ./scripts/*.sh
echo "Inside before-install"

echo "Current running branch $TRAVIS_BRANCH"

## Here put a switch for ad hoc and app store distribution
## 1 = ad hoc, 2 = app store, 0 = emulator
PROVISIONING_TYPE="1"
if test "$PROVISIONING_TYPE" = '1'; then
	PROFILE_NAME="tnswebformprofile"
	PROVISIONING_PROFILE="b96261dd-8691-46d4-89f4-1cfb195e10a3"
fi

if test "$PROVISIONING_TYPE" = '2'; then
	PROFILE_NAME="tnswebformappstore"
	PROVISIONING_PROFILE="986f708a-ebbf-4d8c-afda-4e5f82c934c4"
fi

declare -a e
e[0]="$PROFILE_NAME"
e[1]="$PROVISIONING_PROFILE"
e[2]="$PROVISIONING_TYPE"
echo "${e[@]}" > /tmp/tempout

npm install

# End of Before Install

#Before Script
echo "Travis before_script"
./scripts/before-script.sh

#Script
echo "Travis script"
./scripts/script.sh

#after_script
echo "Travis after_script"
./scripts/after-script.sh

#after_success
echo "Travis after_success"
./scripts/after-success.sh<commit_msg>local staging script manual tns build ios release<commit_after># local staging entry script

export APP_NAME="tnswebformclient"
export 'DEVELOPER_NAME="iPhone Distribution: <NAME> (C4F7EVGZVS)"'
export PROFILE_NAME="tnswebformprofile"
export NODE_VERSION="6" NPM_VERSION="3" TNS_VERSION="rc"
export 'CODE_SIGN_IDENTITY="iPhone Distribution: <NAME> (C4F7EVGZVS)"'
export PROVISIONING_PROFILE="b96261dd-8691-46d4-89f4-1cfb195e10a3"
export DEVELOPMENT_TEAM="C4F7EVGZVS"
export 'XCBUILD_SAFE_SH="/Users/travis/build/fyhao/tns-webform-client/scripts/xcbuild-safe.sh"'

export TRAVIS_BRANCH="staging"


#Before Install
chmod +x ./scripts/*.sh
echo "Inside before-install"

echo "Current running branch $TRAVIS_BRANCH"

## Here put a switch for ad hoc and app store distribution
## 1 = ad hoc, 2 = app store, 0 = emulator
PROVISIONING_TYPE="1"
if test "$PROVISIONING_TYPE" = '1'; then
	PROFILE_NAME="tnswebformprofile"
	PROVISIONING_PROFILE="b96261dd-8691-46d4-89f4-1cfb195e10a3"
fi

if test "$PROVISIONING_TYPE" = '2'; then
	PROFILE_NAME="tnswebformappstore"
	PROVISIONING_PROFILE="986f708a-ebbf-4d8c-afda-4<PASSWORD>"
fi

declare -a e
e[0]="$PROFILE_NAME"
e[1]="$PROVISIONING_PROFILE"
e[2]="$PROVISIONING_TYPE"
echo "${e[@]}" > /tmp/tempout

npm install

# End of Before Install

#Before Script
echo "Travis before_script"
./scripts/before-script.sh

#Script
echo "Travis script"
tns build ios --release --for-device --provision "$PROVISIONING_PROFILE" --teamId "$DEVELOPMENT_TEAM"

#after_script
echo "Travis after_script"
./scripts/after-script.sh

#after_success
echo "Travis after_success"
./scripts/after-success.sh
{'fraction_non_alphanumeric': 0.1256023128814648, 'fraction_numerical': 0.047221329906842274, 'mean_word_length': 6.688888888888889, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, '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': '1172154', 'n_tokens_mistral': 1307, 'n_tokens_neox': 1232, 'n_words': 246}