language: python
python:
  - "2.7"
services:
  - rabbitmq
before_install:
  - virtualenv ./pyenv --distribute
  - source ./pyenv/bin/activate
install:
  - pip install -r requirements.txt -e .
  - git clone http://github.com/openspending/openspendingjs.git
  - ln -s openspendingjs openspending/ui/public/static/openspendingjs
  - pip install psycopg2
before_script:
  - curl https://raw.githubusercontent.com/moliware/travis-solr/master/travis-solr.sh | SOLR_VERSION=4.7.2 SOLR_CONFS="solr/schema.xml" SOLR_PORT=18983 bash
  - psql -c 'create database openspending;' -U postgres
  - cp development.ini_tmpl development.ini
  - cp test.ini_tmpl test.ini
  - git submodule init && git submodule update
  - nosetests --version
script:
  - nosetests

language: python
python:
  - "2.7"
services:
  - rabbitmq
before_install:
  - virtualenv ./pyenv --distribute
  - source ./pyenv/bin/activate
install:
  - pip install -r requirements.txt -e .
  - git clone http://github.com/openspending/openspendingjs.git
  - ln -s openspendingjs openspending/ui/public/static/openspendingjs
  - pip install psycopg2
before_script:
  - curl https://raw.githubusercontent.com/moliware/travis-solr/master/travis-solr.sh | SOLR_VERSION=4.7.2 SOLR_CONFS="solr/schema.xml" SOLR_PORT=8983 bash
  - psql -c 'create database openspending;' -U postgres
  - cp development.ini_tmpl development.ini
  - cp test.ini_tmpl test.ini
  - git submodule init && git submodule update
  - nosetests --version
script:
  - nosetests

Update SOLR test port for Travis
Update SOLR test port for Travis

The test.ini file has changed and now uses a different port. For
our Travis tests we therefore need to update to use the same port.
