summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-09-26 19:07:56 +0200
committerRemi Collet <fedora@famillecollet.com>2015-09-26 19:07:56 +0200
commit631ae348d7f13bdd20acbe8bcc1cfbdf58049e10 (patch)
tree99a0ca0c6394a89b569868e29b7df4a145fc7c53
parent81f63eff2f65326a635ddc6c4209a0615fb1a167 (diff)
php-pecl-solr2: improve again (use docker)
-rw-r--r--php-pecl-solr2.spec7
1 files changed, 4 insertions, 3 deletions
diff --git a/php-pecl-solr2.spec b/php-pecl-solr2.spec
index 426d350..adc244b 100644
--- a/php-pecl-solr2.spec
+++ b/php-pecl-solr2.spec
@@ -33,8 +33,9 @@
# After 20-curl, 40-json
%global ini_name 50-%{pecl_name}.ini
%endif
-# For full test (with online server) use --with tests
-# solr5 must be resolved, or use --define "server <ip>"
+# For full test (using localhost server) use --with tests
+# create: docker run -d -p 8983:8983 --name solr5 -t omars/solr53
+# cleanup: docker stop solr5 && docker rm solr5
%global with_tests 0%{?_with_tests:1}
Summary: Object oriented API to Apache Solr
@@ -211,7 +212,7 @@ fi
%check
%if %{with_tests}
sed -e '/SOLR_SERVER_CONFIGURED/s/false/true/' \
- %{?server: -e '/SOLR_SERVER_HOSTNAME/s/solr5/%{server}/'} \
+ -e '/SOLR_SERVER_HOSTNAME/s/solr5/localhost/' \
-i ?TS/tests/test.config.inc
%else
sed -e '/SOLR_SERVER_CONFIGURED/s/true/false/' \