<commit_before>language: python

notifications:
  email:
    recipients:
      - "<EMAIL>"
    on_success: change
    on_failure: change
  webhooks: "https://webhooks.gitter.im/e/68f77bae61efa5c931f8"

env:
  global:
  - NUPIC=$TRAVIS_BUILD_DIR/nupic
  - PYTHONPATH=/home/travis/build/numenta/nupic/lib/python2.7/site-packages:$NUPIC
  - AWS_ACCESS_KEY_ID=<KEY>
  - secure: <KEY>

before_install:
  # Upgrade pip
  - pip install --upgrade pip
  # Wheels is currently used for installation.
  - pip install wheel
  # These are required for the fetch_wheels.py script.
  - pip install requests
  - pip install boto

  - NUPIC_SHA=`cat nupic_sha.txt`
  - 'echo NUPIC SHA: $NUPIC_SHA'

  # Clone nupic to get the tests & version
  - git clone https://github.com/numenta/nupic.git
  - (cd nupic && git reset --hard ${NUPIC_SHA} && rm -rf nupic)

  # install gcc-4.8 for C++11 compatibility, #TODO remove when Travis has gcc>=4.8, (it's used for clang too, in coveralls)
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  - sudo apt-get -qq update
  - sudo apt-get -qq install g++-4.8
  - alias gcc='gcc-4.8'
  - alias g++='g++-4.8'


install:

  - echo $PYTHONPATH
  - echo $NUPIC

  # Fetches the binary distribution.
  - python fetch_wheels.py

  # Install wheels we just downloaded.
  - NUPIC_VERSION=`cat ${NUPIC}/VERSION`
  - echo "Installing NuPIC ${NUPIC_VERSION} with wheels..."
  - pip install --use-wheel --no-index --find-links=wheelhouse nupic==${NUPIC_VERSION}


script:

  # NuPIC swarming tests
  - cd $NUPIC
  - . ./run_tests.sh -w

  # NuPIC example runs
  - . ./ci/travis/script-run-examples.sh

  - cd $TRAVIS_BUILD_DIR

  # Regressions tests
  - py.test tests/<commit_msg>Fixing swarming tests because interfact changed.<commit_after>language: python

notifications:
  email:
    recipients:
      - "<EMAIL>"
    on_success: change
    on_failure: change
  webhooks: "https://webhooks.gitter.im/e/68f77bae61efa5c931f8"

env:
  global:
  - NUPIC=$TRAVIS_BUILD_DIR/nupic
  - PYTHONPATH=/home/travis/build/numenta/nupic/lib/python2.7/site-packages:$NUPIC
  - AWS_ACCESS_KEY_ID=<KEY>
  - secure: B<KEY>

before_install:
  # Upgrade pip
  - pip install --upgrade pip
  # Wheels is currently used for installation.
  - pip install wheel
  # These are required for the fetch_wheels.py script.
  - pip install requests
  - pip install boto

  - NUPIC_SHA=`cat nupic_sha.txt`
  - 'echo NUPIC SHA: $NUPIC_SHA'

  # Clone nupic to get the tests & version
  - git clone https://github.com/numenta/nupic.git
  - (cd nupic && git reset --hard ${NUPIC_SHA} && rm -rf nupic)

  # install gcc-4.8 for C++11 compatibility, #TODO remove when Travis has gcc>=4.8, (it's used for clang too, in coveralls)
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  - sudo apt-get -qq update
  - sudo apt-get -qq install g++-4.8
  - alias gcc='gcc-4.8'
  - alias g++='g++-4.8'


install:

  - echo $PYTHONPATH
  - echo $NUPIC

  # Fetches the binary distribution.
  - python fetch_wheels.py

  # Install wheels we just downloaded.
  - NUPIC_VERSION=`cat ${NUPIC}/VERSION`
  - echo "Installing NuPIC ${NUPIC_VERSION} with wheels..."
  - pip install --use-wheel --no-index --find-links=wheelhouse nupic==${NUPIC_VERSION}


script:

  # NuPIC swarming tests
  - cd $NUPIC
  - . ./scripts/run_nupic_tests -w

  # NuPIC example runs
  - . ./ci/travis/script-run-examples.sh

  - cd $TRAVIS_BUILD_DIR

  # Regressions tests
  - py.test tests/
{'fraction_non_alphanumeric': 0.12641673931996514, 'fraction_numerical': 0.014530659691950014, 'mean_word_length': 2.997677119628339, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2295856', 'n_tokens_mistral': 1379, 'n_tokens_neox': 1311, 'n_words': 316}