Example how to get and install Apache solr5 for your tests on https://travis-ci.org/
Get a Solr instance running and use it in your tests.
export SOLR_VERSION="5.1.0" export SOLR_PORT=8983 bash ./solr5-install.sh
You have to specify one of these versions:
- 5.1.0
- 5.2.0
If you want your Solr instance to run on a different TCP port, define this variable; Solr will run on the default port 8983 if left blank.
Create Solr cores
export SOLR_CORENAME="test1 test2 test3" export SOLR_CONFIGSET="default" bash ./solr5-addcore.sh
Select the core or cores separated by space
Select the configset for cores, by default "basic"
Stop Solr instance
export SOLR_VERSION="5.1.0" export SOLR_PORT=8983 bash ./solr5-stop.sh