<commit_before>language: cpp

git:
  depth: 10

notifications:
  email: false

addons:
  apt:
    packages:
      - libssl-dev
      - python-dev
      - scons
      - swig

sudo: required

matrix:
  include:
    - os: linux
      compiler: gcc
      dist: trusty
    - os: osx
      compiler: clang

before_install:
- |
  if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
    brew install openssl scons swig
  fi
  python -V

# Travis supplies their own version of Python, and advise not to use the
# system Python environment.

script:
- python `which scons`
- sudo python `which scons` install
- python test.py || python -v -c 'import s2' && exit 1

# TODO: run the unit tests

<commit_msg>Force use of system python on Travis<commit_after>language: cpp

git:
  depth: 10

notifications:
  email: false

addons:
  apt:
    packages:
      - libssl-dev
      - python-dev
      - scons
      - swig

sudo: required

matrix:
  include:
    - os: linux
      compiler: gcc
      dist: trusty
    - os: osx
      compiler: clang

before_install:
- |
  if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
    brew install openssl scons swig
  fi
  python -V

script:
- scons
- sudo scons install
- |
  if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
    # We really want to use the system Python, because Travis' has broken
    # distutils paths.
    /usr/bin/python test.py || /usr/bin/python -v -c 'import s2' && exit 1
  else
    python test.py || python -v -c 'import s2' && exit 1
  fi

# TODO: run the unit tests


{'fraction_non_alphanumeric': 0.1085219707057257, 'fraction_numerical': 0.006657789613848202, 'mean_word_length': 2.34, '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': '5340089', 'n_tokens_mistral': 545, 'n_tokens_neox': 525, 'n_words': 177}