theme-version-to-0.4.x
Safwan Rahman 2018-05-20 11:15:46 +06:00
parent 7339ee609e
commit d705f6c0bd
4 changed files with 9 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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