<commit_before>branches:
  only:
    - master
    - "2.5"
    - "/^v.*$/"

language: python

python: '3.4'

env:
    - db_user=postgres

addons:
  postgresql: '9.5'
  apt:
    packages:
    - postgresql-9.5-postgis-2.3

before_script:
  - psql -U postgres -c "create extension postgis"

install:
    - pip install --upgrade pip
    - pip install -r tests/requirements.txt --upgrade
    # TODO: Once opencivicdata cuts a release including @fgregg's addition of extras to BillDocument, we can remove this
    - pip install --no-deps https://github.com/opencivicdata/python-opencivicdata/archive/7203a5ecf5adcbbebbe79a8e192a693266d2203b.zip
    - pip install -e .

sudo: required
dist: trusty
group: deprecated-2017Q4

script:
    - flake8 ./councilmatic_core/*.py
    - pytest -sv

deploy:
  provider: pypi
  user: datamade.wheelbuilder
  password:<commit_msg>Bump Postgres one more minor version<commit_after>branches:
  only:
    - master
    - "2.5"
    - "/^v.*$/"

language: python

python: '3.4'

env:
    - db_user=postgres

addons:
  postgresql: '9.6'
  apt:
    packages:
    - postgresql-9.6-postgis-2.3

before_script:
  - psql -U postgres -c "create extension postgis"

install:
    - pip install --upgrade pip
    - pip install -r tests/requirements.txt --upgrade
    # TODO: Once opencivicdata cuts a release including @fgregg's addition of extras to BillDocument, we can remove this
    - pip install --no-deps https://github.com/opencivicdata/python-opencivicdata/archive/7203a5ecf5adcbbebbe79a8e192a693266d2203b.zip
    - pip install -e .

sudo: required
dist: trusty
group: deprecated-2017Q4

script:
    - flake8 ./councilmatic_core/*.py
    - pytest -sv

deploy:
  provider: pypi
  user: datamade.wheelbuilder
  password:
{'fraction_non_alphanumeric': 0.11040828062104657, 'fraction_numerical': 0.04370327774583094, 'mean_word_length': 2.9545454545454546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '283816', 'n_tokens_mistral': 696, 'n_tokens_neox': 651, 'n_words': 156}