<commit_before>language: python

python:
  - "2.7"

install:
  # Install conda
  - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
  - bash miniconda.sh -b -p $HOME/miniconda
  - export PATH="$HOME/miniconda/bin:$PATH"
  - conda config --set always_yes yes --set changeps1 no
  - conda update conda
  - conda create -n webappdev python=$TRAVIS_PYTHON_VERSION pytest setuptools 
  - source activate webappdev
  - conda install -c ospc --file conda-requirements.txt
  - echo -n 'git+https://' >> requirements.txt
  - echo -n $OSPC_GITHUB >> requirements.txt
  - echo '@github.com/OpenSourcePolicyCenter/dropq.git@0.6.1#egg=dropq-0.6.1-py2.7.egg' >> requirements.txt
  - pip install -r requirements.txt
  - pip install -r requirements_dev.txt
  - export SECRET_KEY="<KEY>"

before_script:
  - python manage.py syncdb --noinput
  - python manage.py migrate taxbrain
  - python manage.py migrate --fake

script:
  - py.test webapp/apps/<commit_msg>Travis CI: make migrations for taxbrain app<commit_after>language: python

python:
  - "2.7"

install:
  # Install conda
  - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
  - bash miniconda.sh -b -p $HOME/miniconda
  - export PATH="$HOME/miniconda/bin:$PATH"
  - conda config --set always_yes yes --set changeps1 no
  - conda update conda
  - conda create -n webappdev python=$TRAVIS_PYTHON_VERSION pytest setuptools 
  - source activate webappdev
  - conda install -c ospc --file conda-requirements.txt
  - echo -n 'git+https://' >> requirements.txt
  - echo -n $OSPC_GITHUB >> requirements.txt
  - echo '@github.com/OpenSourcePolicyCenter/dropq.git@0.6.1#egg=dropq-0.6.1-py2.7.egg' >> requirements.txt
  - pip install -r requirements.txt
  - pip install -r requirements_dev.txt
  - export SECRET_KEY="<KEY>"

before_script:
  - python manage.py syncdb --noinput
  - python manage.py makemigrations taxbrain
  - python manage.py migrate taxbrain
  - python manage.py migrate --fake

script:
  - py.test webapp/apps/
{'fraction_non_alphanumeric': 0.122858541360744, 'fraction_numerical': 0.014684287812041116, 'mean_word_length': 3.2941176470588234, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 2, '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': '6013144', 'n_tokens_mistral': 765, 'n_tokens_neox': 740, 'n_words': 173}