<commit_before>language: python
# if the https://travis-ci.org/ODM2/ODM2PythonAPI/requests ever says: missing config
# validate at: http://lint.travis-ci.org/
# example conda https://github.com/pandalone/pandalone
python:
#  - "2.6"
  - "2.7"
#  - "3.2"
#  - "3.3"
#  - "3.4"
#  - "3.5"
#  - "3.5-dev" # 3.5 development branch
#  - "nightly" # currently points to 3.6-dev
# command to install dependencies
cache:
  directories:
    - $HOME/.cache/pip/wheels
    - $HOME/virtualenv/python2.7.9
services:
  - mysql
  - postgresql
addons:
  apt:
    packages:
      - cmake
      - unixodbc
      - unixodbc-dev
      - odbcinst1debian2
      - odbcinst
      - freetds-dev
      - freetds-bin
      - tdsodbc
      - libc6
      - e2fsprogs
      - mysql-client
      - libproj-dev
      - libgeos-dev
      - libspatialite-dev
#addons:
#  mariadb: '10.1'
before_script:
 # - ./scripts/mysql_setup.sh
 # - ./scripts/postgres_setup.sh

before_install:
  ## From: http://conda.pydata.org/docs/travis.htm
  ## Another one: https://gist.github.com/dan-blanchard/7045057
  #- sudo apt-get update
  - wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
  - bash miniconda.sh -b -p $HOME/miniconda
  - |
      export PATH="$HOME/miniconda/bin:$PATH"
      hash -r
  - |
      conda config --set always_yes yes --set changeps1 no
      conda update -q conda
  ## Print python-version and architecture for debugging .
  #
  - |
      python --version
      conda info -a

install: # now just our code
  # conda
  - |
      deps="`grep -v \# requirements/miniconda.conda`"
      conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION $deps
  - source activate test-environment
  - pip install -r requirements/development.pip
  # ODM2
  - pip install git+https://github.com/ODM2/geoalchemy.git@odm2#egg=geoalchemy-0.7.3
  - pip install  -e .
#  - pip install  -r requirements_tests.txt  --allow-external pyodbc --allow-unverified pyodbc
    # pysqlite
  - pip install pysqlite
  - pip list


# don't forget to open up the azure mssql server to these addreses
# https://docs.travis-ci.com/user/ip-addresses/

# command to run tests
script:
# just the connection part

  - py.test
<commit_msg>updating travis only run files in tests<commit_after>language: python
# if the https://travis-ci.org/ODM2/ODM2PythonAPI/requests ever says: missing config
# validate at: http://lint.travis-ci.org/
# example conda https://github.com/pandalone/pandalone
python:
#  - "2.6"
  - "2.7"
#  - "3.2"
#  - "3.3"
#  - "3.4"
#  - "3.5"
#  - "3.5-dev" # 3.5 development branch
#  - "nightly" # currently points to 3.6-dev
# command to install dependencies
cache:
  directories:
    - $HOME/.cache/pip/wheels
    - $HOME/virtualenv/python2.7.9
services:
  - mysql
  - postgresql
addons:
  apt:
    packages:
      - cmake
      - unixodbc
      - unixodbc-dev
      - odbcinst1debian2
      - odbcinst
      - freetds-dev
      - freetds-bin
      - tdsodbc
      - libc6
      - e2fsprogs
      - mysql-client
      - libproj-dev
      - libgeos-dev
      - libspatialite-dev
#addons:
#  mariadb: '10.1'
before_script:
 # - ./scripts/mysql_setup.sh
 # - ./scripts/postgres_setup.sh

before_install:
  ## From: http://conda.pydata.org/docs/travis.htm
  ## Another one: https://gist.github.com/dan-blanchard/7045057
  #- sudo apt-get update
  - wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
  - bash miniconda.sh -b -p $HOME/miniconda
  - |
      export PATH="$HOME/miniconda/bin:$PATH"
      hash -r
  - |
      conda config --set always_yes yes --set changeps1 no
      conda update -q conda
  ## Print python-version and architecture for debugging .
  #
  - |
      python --version
      conda info -a

install: # now just our code
  # conda
  - |
      deps="`grep -v \# requirements/miniconda.conda`"
      conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION $deps
  - source activate test-environment
  - pip install -r requirements/development.pip
  # ODM2
  - pip install git+https://github.com/ODM2/geoalchemy.git@odm2#egg=geoalchemy-0.7.3
  - pip install  -e .
#  - pip install  -r requirements_tests.txt  --allow-external pyodbc --allow-unverified pyodbc
    # pysqlite
  - pip install pysqlite
  - pip list


# don't forget to open up the azure mssql server to these addreses
# https://docs.travis-ci.com/user/ip-addresses/

# command to run tests
script:
# just the connection part

  - py.test tests

{'fraction_non_alphanumeric': 0.12839946500222915, 'fraction_numerical': 0.021845742309407043, 'mean_word_length': 2.4095744680851063, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '6360482', 'n_tokens_mistral': 1742, 'n_tokens_neox': 1693, 'n_words': 361}