From 6be7d0fa1ce16794d7be8b86bd443bd2debcd2d2 Mon Sep 17 00:00:00 2001 From: Tom Gross Date: Wed, 3 Jul 2013 21:35:37 +0200 Subject: [PATCH] added config to run solr on travis --- .gitignore | 1 + .travis.yml | 7 +- testing-conf/schema.xml | 295 +++++++++++++++++++ testing-conf/solrconfig.xml | 546 ++++++++++++++++++++++++++++++++++++ travis.cfg | 21 ++ 5 files changed, 867 insertions(+), 3 deletions(-) create mode 100644 testing-conf/schema.xml create mode 100644 testing-conf/solrconfig.xml create mode 100644 travis.cfg diff --git a/.gitignore b/.gitignore index 45be59b..ee92498 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ var *.egg-info *.py[co] .*.cfg +/apache-solr-* diff --git a/.travis.yml b/.travis.yml index 186d035..632c67e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ python: - "2.6" - "2.7" install: - - python bootstrap.py - - bin/buildout -N -script: bin/alltests + - python bootstrap.py -c travis.cfg + - bin/buildout -N -c travis.cfg +before_script: curl https://raw.github.com/moliware/travis-solr/master/travis-solr.sh | SOLR_VERSION=3.6.2 SOLR_CONFS="testing-conf/schema.xml testing-conf/solrconfig.xml" SOLR_DOCS= bash +script: bin/test diff --git a/testing-conf/schema.xml b/testing-conf/schema.xml new file mode 100644 index 0000000..477e8ba --- /dev/null +++ b/testing-conf/schema.xml @@ -0,0 +1,295 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + UID + + + default + + + + + + + + + + + + diff --git a/testing-conf/solrconfig.xml b/testing-conf/solrconfig.xml new file mode 100644 index 0000000..93e01d4 --- /dev/null +++ b/testing-conf/solrconfig.xml @@ -0,0 +1,546 @@ + + + + + + + LUCENE_35 + + + + + + + + + + + + /Users/tom/VC/collective.solr/var/solr/data + + + + + + + 1000000000 + 1000 + native + + + + + + + false + 10 + 16 + true + true + + + 1 + 0 + + + + false + + + + + + + + + + + + + + 1024 + + + + + + + + + + + true + + + 10 + + + 100 + + + false + + + 4 + + + + + + + + + + + + + + + + explicit + 500 + + + + + + explicit + 500 + false + false + 1 + + + + spellcheck + + + + + + + + + + + + + + + + + + + + + tika_content + false + tika_ + + + + + + + + + + + + + + + + + search + solrpingquery + + + all + + + + + + + explicit + true + + + + + + + textSpell + + + default + default + spellchecker + .001 + true + + + + + + + + + + + + + + string + elevate.xml + + + + + + + + + + 100 + + + + + + + + 70 + + 0.5 + + [-\w ,/\n\"']{20,200} + + + + + + + ]]> + ]]> + + + + + + + + + + + + + + + + + + + + ,, + ,, + ,, + ,, + ,]]> + ]]> + + + + + + + + + + + 5 + + + + + *:* + + + + + diff --git a/travis.cfg b/travis.cfg new file mode 100644 index 0000000..8718507 --- /dev/null +++ b/travis.cfg @@ -0,0 +1,21 @@ +[buildout] +extends = + https://raw.github.com/collective/buildout.plonetest/master/travis-4.3.x.cfg +package-name = collective.solr +package-extras = [test] +parts += + test + +[test] +recipe = collective.xmltestreport +eggs = + collective.solr [test] + ${instance:eggs} + +[versions] +coverage = 3.4 +collective.xmltestreport = 1.2.6 +zc.buildout = 1.6.3 + +[sources] +collective.indexing = git git@github.com:plone/collective.indexing.git