Skip to content

Commit c0866ed

Browse files
committed
[CI] Use docker for now to install elasticsearch in travis
1 parent e55e64c commit c0866ed

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.travis.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,24 @@ matrix:
4545
env:
4646
global:
4747
- ELASTICSEARCH_VERSION=7.0.0.alpha
48+
- TEST_CLUSTER_PORT=9250
4849
- QUIET=true
4950

5051

5152
before_install:
52-
- wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/7.0.0/elasticsearch-${ELASTICSEARCH_VERSION}.deb
53-
- wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ELASTICSEARCH_VERSION}.deb.sha512
54-
- shasum -a 512 -c elasticsearch-${ELASTICSEARCH_VERSION}.deb.sha512
55-
- sudo dpkg -i --force-confnew elasticsearch-${ELASTICSEARCH_VERSION}.deb
56-
- sudo service elasticsearch restart
53+
#- wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ELASTICSEARCH_VERSION}.deb
54+
#- wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ELASTICSEARCH_VERSION}.deb.sha512
55+
#- shasum -a 512 -c elasticsearch-${ELASTICSEARCH_VERSION}.deb.sha512
56+
#- sudo dpkg -i --force-confnew elasticsearch-${ELASTICSEARCH_VERSION}.deb
57+
#- sudo service elasticsearch restart
5758
- gem update --system -q
5859
- gem update bundler -q
5960
- gem --version
6061
- bundle version
6162

6263
install:
63-
- bundle install
64-
- bundle install
64+
- bundle install test:setup_elasticsearch_docker
65+
- bundle exec rake test:set
6566
- rake bundle:clean
6667
- rake bundle:install
6768

0 commit comments

Comments
 (0)