<commit_before>language: ruby
rvm:
  - ruby-2.0.0
addons:
  postgresql: "9.3"

before_install:
  - sudo apt-get update
  - sudo find / -name "geos"
  - sudo find / -name "proj"
  - ls /usr/share/proj
  - ls /usr/bin/proj
  - sudo find / -name "gdal"
  - ls /usr/share/gdal
  - sudo apt-get install -qq libgeos-dev libproj-dev
  - sudo apt-get -qq install libgeos++-dev
  - sudo find / -name "geos"
  - ls /usr/include/geos
  - sudo find / -name "proj"
  - ls /usr/share/proj
  - ls /usr/bin/proj
  - sudo find / -name "gdal"
  - ls /usr/share/gdal

before_script:
  
  - gem uninstall rgeo
  - gem install rgeo -- --with-geos-dir=/usr/include/geos --with-proj-dir=/usr/share/proj
  - psql -c 'create database "homebase_test";' -U postgres
  - psql -U postgres -c "create extension postgis"
  - bundle exec rake db:migrate RAILS_ENV=test
notifications:
  webhooks: http://project-monitor.codeforamerica.org/projects/98138ce2-1d31-4eac-91b8-55e763474cc9/status<commit_msg>Add more database debugging<commit_after>language: ruby
rvm:
  - ruby-2.0.0
addons:
  postgresql: "9.3"

before_install:
  - sudo apt-get update
  - sudo find / -name "geos"
  - sudo find / -name "proj"
  - ls /usr/share/proj
  - ls /usr/bin/proj
  - sudo find / -name "gdal"
  - ls /usr/share/gdal
  - sudo apt-get install -qq libgeos-dev libproj-dev
  - sudo apt-get -qq install libgeos++-dev
  - sudo find / -name "geos"
  - ls /usr/include/geos
  - sudo find / -name "proj"
  - ls /usr/share/proj
  - ls /usr/bin/proj
  - sudo find / -name "gdal"
  - ls /usr/share/gdal

before_script:
  
  - gem uninstall rgeo
  - gem install rgeo -- --with-geos-dir=/usr/include/geos --with-proj-dir=/usr/share/proj
  - psql -c 'create database "homebase_test";' -U postgres
  - psql -U postgres -c "create extension postgis"
  - psql -c '\dt' -U postgres
  - psql -c '\d' -U postgres
  - psql -c 'select postgis_full_version()' -U postgres
  - bundle exec rake db:migrate RAILS_ENV=test
notifications:
  webhooks: http://project-monitor.codeforamerica.org/projects/98138ce2-1d31-4eac-91b8-55e763474cc9/status
{'fraction_non_alphanumeric': 0.14258095698405027, 'fraction_numerical': 0.02609956500724988, 'mean_word_length': 2.556701030927835, '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': '2162381', 'n_tokens_mistral': 909, 'n_tokens_neox': 837, 'n_words': 200}