<commit_before>language: cpp

git:
  submodules: true
  depth: 10

sudo: false

addons:
  apt:
    sources:
     - ubuntu-toolchain-r-test
     - llvm-toolchain-precise-3.5
    packages:
     - clang-3.5

before_install:
 - export MASON_BUILD=true
 - export CXX="clang++-3.5"
 - export CC="clang-3.5"
 - python --version

install:
 - time python setup.py build

before_script:
 - python test/run_tests.py -q

script:
 - python test/visual.py -q<commit_msg>install nose + use ccache<commit_after>language: cpp

git:
  submodules: true
  depth: 10

sudo: false

cache:
  directories:
  - mason_packages
  - $HOME/.ccache

addons:
  apt:
    sources:
     - ubuntu-toolchain-r-test
     - llvm-toolchain-precise-3.5
    packages:
     - clang-3.5

before_install:
 - export MASON_BUILD=true
 - if [[ $(uname -s) == 'Linux' ]]; then
     export CXX="ccache clang++-3.5 -Qunused-arguments";
     # intentionally pass c++ compiler for CC since that is what setup.py uses
     export CC="ccache clang++-3.5 -Qunused-arguments";
     export PYTHONPATH=$(pwd)/mason_packages/.link/lib/python2.7/site-packages;
   else
     export PYTHONPATH=$(pwd)/mason_packages/.link/lib/python/site-packages;
   fi;
 - PYTHONUSERBASE=$(pwd)/mason_packages/.link pip install --user nose
 - python --version

install:
 - time python setup.py build

before_script:
 - python test/run_tests.py -q

script:
 - python test/visual.py -q
{'fraction_non_alphanumeric': 0.12944523470839261, 'fraction_numerical': 0.015647226173541962, 'mean_word_length': 2.9192200557103063, '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': '1004702', 'n_tokens_mistral': 529, 'n_tokens_neox': 516, 'n_words': 114}