Skip to content

Commit 35ccf8a

Browse files
committed
Skip ElasticSearch install on Travis for unit tests
1 parent 956b178 commit 35ccf8a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,13 @@ cache:
3939
directories:
4040
- $HOME/.composer/cache
4141
before_install:
42-
- curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.2-amd64.deb
43-
- sudo dpkg -i --force-confnew elasticsearch-7.6.2-amd64.deb
44-
- sudo chown -R elasticsearch:elasticsearch /etc/default/elasticsearch
45-
- sudo service elasticsearch restart
42+
- |
43+
[[ $TEST_SUITE == "unit" ]] || (
44+
curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.2-amd64.deb
45+
sudo dpkg -i --force-confnew elasticsearch-7.6.2-amd64.deb
46+
sudo chown -R elasticsearch:elasticsearch /etc/default/elasticsearch
47+
sudo service elasticsearch restart
48+
)
4649
before_script:
4750
- |
4851
sleep 10

0 commit comments

Comments
 (0)