Coder Social home page Coder Social logo

travis-solr's Introduction

travis-solr.sh

Get a Solr instance running with a one-liner and use it in your tests.

Usage

curl -sSL https://raw.githubusercontent.com/moliware/travis-solr/master/travis-solr.sh | SOLR_VERSION=3.6.1 SOLR_CONFS="schema.xml solrconfig.xml" SOLR_DOCS=custom_docs.json bash

SOLR_VERSION:

You have to specify one of these versions:

  • 3.5.0
  • 3.6.0
  • 3.6.1
  • 3.6.2
  • 4.0.0
  • 4.1.0
  • 4.2.0
  • 4.2.1
  • 4.3.1
  • 4.4.0
  • 4.5.0
  • 4.5.1
  • 4.6.0
  • 4.6.1
  • 4.7.0
  • 4.7.1
  • 4.7.2
  • 4.8.0
  • 4.8.1
  • 4.9.0
  • 4.9.1
  • 4.10.0
  • 4.10.1
  • 4.10.2
  • 4.10.3

SOLR_CONFS:

If you need to use some custom configuration you can specify one or more files in this variable and the script will copy it in the solr conf folder.

Be sure to surround multiple values with quotes.

Don't use it if you need the default solr settings.

SOLR_DOCS:

By default the script will not index any documents. You can point this variable to a json file that contains your custom documents for indexing.

SOLR_PORT:

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.

SOLR_CORE:

Select the core, by default core0

DEBUG

If 'true' prints solr logs

Travis-ci

Edit your .travis.yml and use travis-solr as a before_script script. For example if you want to use solr 3.6.1 with the default settings you can add this line to your .travis.yml:

before_script: curl -sSL https://raw.githubusercontent.com/moliware/travis-solr/master/travis-solr.sh | SOLR_VERSION=3.6.1 bash

travis-solr's People

Contributors

andrerom avatar capncavedan avatar carpodaster avatar moliware avatar nickveenhof avatar nnarhinen avatar patrickallaert avatar rclark avatar tolleiv avatar trptcolin avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.