Jordi Boggiano před 9 roky
rodič
revize
ee1c10c81a
2 změnil soubory, kde provedl 50 přidání a 3 odebrání
  1. 3 3
      .travis.yml
  2. 47 0
      doc/solrconfig.xml

+ 3 - 3
.travis.yml

@@ -22,12 +22,12 @@ matrix:
 
 before_script:
     - cp app/config/parameters.yml.dist app/config/parameters.yml
-    - 'mysql -uroot -e "CREATE DATABASE packagist_test;"'
     - 'echo "    github.client_id: $GH_CLIENT_ID" >> app/config/parameters.yml'
     - 'echo "    github.client_secret: $GH_CLIENT_SECRET" >> app/config/parameters.yml'
-    - 'curl -sSL https://raw.githubusercontent.com/moliware/travis-solr/master/travis-solr.sh | SOLR_VERSION=3.6.0 SOLR_CONFS="doc/schema.xml" SOLR_CORE="collection1" bash'
+    - 'curl -sSL https://raw.githubusercontent.com/moliware/travis-solr/master/travis-solr.sh | SOLR_VERSION=3.6.0 SOLR_CONFS="doc/schema.xml doc/solrconfig.xml" SOLR_CORE="collection1" bash'
     - composer install
-    - app/console doc:sch:create --env=test -n
+    - app/console doctrine:database:create --env=test -n
+    - app/console doctrine:schema:create --env=test -n
 
 script:
     - phpunit

+ 47 - 0
doc/solrconfig.xml

@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!--
+ This is a stripped down config file used for a simple example...
+ It is *not* a good example to work from.
+-->
+<config>
+  <luceneMatchVersion>LUCENE_36</luceneMatchVersion>
+  <!--  The DirectoryFactory to use for indexes.
+        solr.StandardDirectoryFactory, the default, is filesystem based.
+        solr.RAMDirectoryFactory is memory based, not persistent, and doesn't work with replication. -->
+  <directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>
+
+
+  <updateHandler class="solr.DirectUpdateHandler2" />
+
+  <requestDispatcher handleSelect="true" >
+    <requestParsers enableRemoteStreaming="false" multipartUploadLimitInKB="2048" />
+  </requestDispatcher>
+
+  <requestHandler name="standard" class="solr.StandardRequestHandler" default="true" />
+  <requestHandler name="/update" class="solr.XmlUpdateRequestHandler" />
+  <requestHandler name="/admin/" class="org.apache.solr.handler.admin.AdminHandlers" />
+
+  <!-- config for the admin interface -->
+  <admin>
+    <defaultQuery>solr</defaultQuery>
+  </admin>
+
+</config>
+