fixup
parent
7339ee609e
commit
d705f6c0bd
|
@ -20,10 +20,7 @@ cache:
|
|||
- ~/.cache/pip
|
||||
- ~/.nvm/nvm.sh
|
||||
install:
|
||||
- wget ${ES_DOWNLOAD_URL}
|
||||
- tar -xzf elasticsearch-${ES_VERSION}.tar.gz
|
||||
- ./elasticsearch-${ES_VERSION}/bin/plugin -install elasticsearch/elasticsearch-analysis-icu/2.3.0
|
||||
- ./elasticsearch-${ES_VERSION}/bin/elasticsearch &
|
||||
- ./scripts/travis/install_elasticsearch.sh
|
||||
- pip install tox-travis
|
||||
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
|
||||
- source ~/.nvm/nvm.sh
|
||||
|
|
|
@ -82,5 +82,4 @@ def project(version, mocker, make_page_file):
|
|||
project = version.project
|
||||
media_path = mocker.patch('readthedocs.projects.models.Project.get_production_media_path')
|
||||
media_path.return_value = str(make_page_file())
|
||||
print project.get_production_media_path()
|
||||
return version.project
|
|
@ -14,4 +14,4 @@ class TestElasticSearch(object):
|
|||
def test_search_by_project_name(self, search, client, project):
|
||||
url = reverse('search')
|
||||
resp = client.get(url, {'q': project.name})
|
||||
assert project.name in resp.content
|
||||
assert project.name.encode('utf-8') in resp.content
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
if [ $ES_DOWNLOAD_URL ]
|
||||
then
|
||||
wget ${ES_DOWNLOAD_URL}
|
||||
tar -xzf elasticsearch-${ES_VERSION}.tar.gz
|
||||
./elasticsearch-${ES_VERSION}/bin/plugin -install elasticsearch/elasticsearch-analysis-icu/2.3.0
|
||||
./elasticsearch-${ES_VERSION}/bin/elasticsearch &
|
||||
fi
|
Loading…
Reference in New Issue