Compare commits

..
1 Commits
Author SHA1 Message Date
Victor Shyba 4ab2b659e7 add elasticsearch service to gitlab 2021-03-30 15:58:44 -03:00
4 changed files with 7 additions and 9 deletions

No files matched your search

+5 -7
View File
@@ -3,9 +3,8 @@ default:
services:
- name: docker.elastic.co/elasticsearch/elasticsearch:7.11.2
alias: elasticsearch
command: [ "bin/elasticsearch", "-Expack.security.enabled=false", "-Ediscovery.type=single-node" ]
variables:
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
ELASTIC_HOST: elasticsearch
#cache:
@@ -47,14 +46,13 @@ test:datanetwork-integration:
stage: test
script:
- pip install tox-travis
- ELASTIC_HOST=elasticsearch tox -e datanetwork --recreate
- tox -e datanetwork --recreate
test:blockchain-integration:
stage: test
script:
- curl "http://elasticsearch:9200/_cat/health"
- pip install tox-travis
- ELASTIC_HOST=elasticsearch tox -e blockchain
- tox -e blockchain
test:other-integration:
stage: test
@@ -62,13 +60,13 @@ test:other-integration:
- apt-get update
- apt-get install -y --no-install-recommends ffmpeg
- pip install tox-travis
- ELASTIC_HOST=elasticsearch tox -e other
- tox -e other
test:json-api:
stage: test
script:
- make install tools
- ELASTIC_HOST=elasticsearch HOME=/tmp coverage run -p --source=lbry scripts/generate_json_api.py
- HOME=/tmp coverage run -p --source=lbry scripts/generate_json_api.py
+1 -1
View File
@@ -1,2 +1,2 @@
__version__ = "0.93.0"
__version__ = "0.92.0"
version = tuple(map(int, __version__.split('.'))) # pylint: disable=invalid-name
@@ -54,6 +54,7 @@ class SearchIndex:
self.sync_client = AsyncElasticsearch(hosts, timeout=self.sync_timeout)
self.search_client = AsyncElasticsearch(hosts, timeout=self.search_timeout)
while True:
self.logger.info("DOITDOITDOIT\n\n\n\n%s:%i\n\n\n", self._elastic_host, self._elastic_port)
try:
await self.sync_client.cluster.health(wait_for_status='yellow')
break
-1
View File
@@ -6,7 +6,6 @@ extras = test
changedir = {toxinidir}/tests
setenv =
HOME=/tmp
ELASTIC_HOST={env:ELASTIC_HOST:localhost}
commands =
pip install https://github.com/rogerbinns/apsw/releases/download/3.30.1-r1/apsw-3.30.1-r1.zip \
--global-option=fetch \