Skip to content

Commit

Permalink
Use elasticsearch image
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Feb 10, 2020
1 parent c5087c9 commit 34d5b76
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,21 @@ jobs:
docker:
- image: circleci/php:7.1-node-browsers
environment:
- ES_DOWNLOAD_URL="https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.5.2-linux-x86_64.tar.gz"
- ARTICLE_TEST_CASE=extend
- image: circleci/mysql:5.7
environment:
- MYSQL_USER=root
- MYSQL_PASSWORD=
- MYSQL_ALLOW_EMPTY_PASSWORD=true
- MYSQL_DATABASE=circle_test
- image: docker.elastic.co/elasticsearch/elasticsearch:7.5.2
environment:
- cluster.name: es-test-cluster
- xpack.security.enabled: false
- transport.host: localhost
- network.host: 127.0.0.1
- http.port: 9200
- discovery.type: single-node
steps:
- checkout
- run:
Expand All @@ -21,12 +28,6 @@ jobs:
sudo apt-get install -y libpng-dev
sudo docker-php-ext-install pdo_mysql gd
parallel: true
- run:
name: Install Elasticsearch
command: |
curl -L -o elasticsearch.tar.gz ${ES_DOWNLOAD_URL}
tar xvzf elasticsearch.tar.gz
parallel: true
- run: sudo composer self-update
- restore_cache:
keys:
Expand All @@ -38,13 +39,6 @@ jobs:
paths:
- vendor
- ~/.composer/cache
- run:
name: Run Elasticsearch
command: |
cd ./elasticsearch-*
ES_JAVA_OPTS="-Xms512m -Xmx1024m" bin/elasticsearch
cd ..
background: true
- run:
name: Test Elasticsearch
command: |
Expand Down

0 comments on commit 34d5b76

Please sign in to comment.