<commit_before>#!/bin/bash
set -e

UNAME=linux
EX=
#set EX to sudo if required.

exitcode=0
plugins=""
plugins_suffix=""
if [[ -n "$PLUGINS" ]]; then
  plugins="--plugins=${PLUGINS}"
  plugins_suffix="-${PLUGINS}"
fi

case "$BUILD_ARCH" in
  32bit)
    python .build/build.py --batch --32bit -- $plugins
    exitcode=$?
    cp rsqueak rsqueak-x86-${UNAME}$plugins_suffix-jit-$TRAVIS_COMMIT || true
    python .build/jittests.py --32bit
    $EX rm -rf .build/pypy/rpython/_cache
    ;;
  64bit)
    python .build/build.py --batch --64bit -- $plugins
    exitcode=$?
    cp rsqueak rsqueak-x86_64-${UNAME}$plugins_suffix-jit-$TRAVIS_COMMIT || true
    python .build/jittests.py --64bit
    $EX rm -rf .build/pypy/rpython/_cache
    ;;
  lldebug)
    python .build/build.py --lldebug -Ojit
    exitcode=$?<commit_msg>allow travis to fail on non-master branch<commit_after>#!/bin/bash
set -e

UNAME=linux
EX=
#set EX to sudo if required.

exitcode=0
plugins=""
plugins_suffix=""
if [[ -n "$PLUGINS" ]]; then
  plugins="--plugins=${PLUGINS}"
  plugins_suffix="-${PLUGINS}"
fi

if [ "$TRAVIS_BRANCH" == "master" ]; then
    JITTESTS_FAIL=false
else
    JITTESTS_FAIL=true
fi

case "$BUILD_ARCH" in
  32bit)
    python .build/build.py --batch --32bit -- $plugins
    exitcode=$?
    cp rsqueak rsqueak-x86-${UNAME}$plugins_suffix-jit-$TRAVIS_COMMIT || true
    python .build/jittests.py --32bit || $JITTESTS_FAIL
    $EX rm -rf .build/pypy/rpython/_cache
    ;;
  64bit)
    python .build/build.py --batch --64bit -- $plugins
    exitcode=$?
    cp rsqueak rsqueak-x86_64-${UNAME}$plugins_suffix-jit-$TRAVIS_COMMIT || true
    python .build/jittests.py --64bit || $JITTESTS_FAIL
    $EX rm -rf .build/pypy/rpython/_cache
    ;;
  lldebug)
    python .build/build.py --lldebug -Ojit
    exitcode=$?
{'fraction_non_alphanumeric': 0.15921787709497207, 'fraction_numerical': 0.021229050279329607, 'mean_word_length': 3.1077981651376145, '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': '6399641', 'n_tokens_mistral': 737, 'n_tokens_neox': 704, 'n_words': 147}