language: ruby
rvm:
  - 1.9.2
  - 1.9.3
before_install:
  - gem update --system
  - gem install bundler --no-ri --no-rdoc
  - curl -O http://fs-packages.s3.amazonaws.com/fs-sphinx-2.0.6_x86_64_12.04.deb
  - sudo dpkg -i fs-sphinx-2.0.6_x86_64_12.04.deb
  - bundle install
before_script:
  - "mysql -e 'create database thinking_sphinx;' > /dev/null"
  - "psql -c 'create database thinking_sphinx;' -U postgres > /dev/null"
  - "bundle exec rake appraisal:install"
env:
  - SPHINX_BIN=/usr/local/sphinx-2.0.6/bin/ SPHINX_VERSION=2.0.6 DATABASE=mysql2
  - SPHINX_BIN=/usr/local/sphinx-2.0.6/bin/ SPHINX_VERSION=2.0.6 DATABASE=postgresql
script: "bundle exec rake appraisal spec"

language: ruby
rvm:
  - 1.9.3
before_install:
  - gem update --system
  - gem install bundler --no-ri --no-rdoc
  - bundle install
before_script:
  - "mysql -e 'create database thinking_sphinx;' > /dev/null"
  - "psql -c 'create database thinking_sphinx;' -U postgres > /dev/null"
  - "bundle exec rake appraisal:install"
env:
  - SPHINX_BIN=/usr/local/sphinx-2.0.9/bin/ SPHINX_VERSION=2.0.9 DATABASE=mysql2
  - SPHINX_BIN=/usr/local/sphinx-2.0.9/bin/ SPHINX_VERSION=2.0.9 DATABASE=postgresql
script: "bundle exec rake appraisal spec"

Use Travis' own Sphinx version.
Use Travis' own Sphinx version.
