<commit_before>sudo: false
language: c
addons:
    apt:
        sources:
            - ubuntu-toolchain-r-test
        packages:
            - gcc-4.8
            - g++-4.8
            - cmake

env:
    global:
        - EIGEN_VERSION=3.2.9
          TEST_LANG='python'

matrix:
    include:

        # This build will compile the LaTeX source of the paper
        - os: linux
          env: TEST_LANG='paper'

        # This one will test the C++ API
        - os: linux
          env: TEST_LANG='cpp' CXX=g++-4.8 CC=gcc-4.8

        # Linux, Python 2.7
        - os: linux
          env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.9
        - os: linux
          env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.10
        - os: linux
          env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.12

        # Linux, Python 3.4
        - os: linux
          env: PYTHON_VERSION=3.4 NUMPY_VERSION=1.11

        # Linux, Python 3.5
        - os: linux
          env: PYTHON_VERSION=3.5 NUMPY_VERSION=1.12

        # Linux, Python 3.6
        - os: linux
          env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.11
        - os: linux
          env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.12
        - os: linux
          env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.12 LAPACK_VARIANT='mkl'
        - os: linux
          env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.12 LAPACK_VARIANT='openblas'

        # OSX
        - os: osx
          env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.12
        - os: osx
          env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.12
        - os: osx
          env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.12 LAPACK_VARIANT='mkl'
        - os: osx
          env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.12 LAPACK_VARIANT='openblas'

install:
    - source .ci/travis.sh

script: |
    if [[ $TEST_LANG == paper ]]
    then
      source .ci/build-paper.sh
    elif [[ $TEST_LANG == cpp ]]
    then
      cd cpp
      CTEST_OUTPUT_ON_FAILURE=1 make test
    elif [[ $TEST_LANG == python ]]
    then
      py.test -v
    fi
<commit_msg>drop py27 support<commit_after>sudo: false
language: c
addons:
    apt:
        sources:
            - ubuntu-toolchain-r-test
        packages:
            - gcc-4.8
            - g++-4.8
            - cmake

env:
    global:
        - EIGEN_VERSION=3.2.9
          TEST_LANG='python'

matrix:
    include:

        # This build will compile the LaTeX source of the paper
        - os: linux
          env: TEST_LANG='paper'

        # This one will test the C++ API
        - os: linux
          env: TEST_LANG='cpp' CXX=g++-4.8 CC=gcc-4.8

        # Linux, Python 2.7
        - os: linux
          env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.10
        - os: linux
          env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.11
        - os: linux
          env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.12

        # Linux, Python 3.4
        - os: linux
          env: PYTHON_VERSION=3.4 NUMPY_VERSION=1.11

        # Linux, Python 3.5
        - os: linux
          env: PYTHON_VERSION=3.5 NUMPY_VERSION=1.12

        # Linux, Python 3.6
        - os: linux
          env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.11
        - os: linux
          env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.12
        - os: linux
          env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.12 LAPACK_VARIANT='mkl'
        - os: linux
          env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.12 LAPACK_VARIANT='openblas'

        # OSX
        - os: osx
          env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.12
        - os: osx
          env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.12
        - os: osx
          env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.12 LAPACK_VARIANT='mkl'
        - os: osx
          env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.12 LAPACK_VARIANT='openblas'

install:
    - source .ci/travis.sh

script: |
    if [[ $TEST_LANG == paper ]]
    then
      source .ci/build-paper.sh
    elif [[ $TEST_LANG == cpp ]]
    then
      cd cpp
      CTEST_OUTPUT_ON_FAILURE=1 make test
    elif [[ $TEST_LANG == python ]]
    then
      py.test -v
    fi

{'fraction_non_alphanumeric': 0.10433910208176574, 'fraction_numerical': 0.04288939051918736, 'mean_word_length': 1.6498338870431895, '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': '7073939', 'n_tokens_mistral': 1612, 'n_tokens_neox': 1495, 'n_words': 308}