Wait for Elasticsearch before running tests

This commit is contained in:
Thomas Patzke
2020-03-29 14:37:27 +02:00
committed by GitHub
parent 821a631325
commit d68b900077
+4 -1
View File
@@ -32,5 +32,8 @@ jobs:
sudo apt install -y apt-transport-https
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic.list
sudo apt update
sudo apt install -y elasticsearch
sudo apt install -y elasticsearch curl jq
sudo systemctl start elasticsearch
until curl -s elasticsearch:9200; do sleep 1; done
until curl -s elasticsearch:9200/_cluster/health | jq -e '.status == "green"'; do sleep 1; done
make test-backend-es-qs