Commit 011d76b5991d88e8a661065c017e4ade3912ce8e

Authored by Braulio Bhavamitra
1 parent 7293d1e7

elasticsearch: fix testing on travis

@@ -20,6 +20,10 @@ language: ruby @@ -20,6 +20,10 @@ language: ruby
20 rvm: 20 rvm:
21 - 2.3.1 21 - 2.3.1
22 22
  23 +services:
  24 + - postgresql
  25 + - elasticsearch
  26 +
23 addons: 27 addons:
24 apt: 28 apt:
25 packages: 29 packages:
plugins/elasticsearch/after_disable.rb
@@ -6,4 +6,6 @@ Dir[tasks_dir].each do |file| @@ -6,4 +6,6 @@ Dir[tasks_dir].each do |file|
6 load file 6 load file
7 end 7 end
8 8
9 -Rake.application['stop'].invoke 9 +unless ENV['TRAVIS']
  10 + Rake.application['stop'].invoke
  11 +end
plugins/elasticsearch/install.rb
@@ -6,4 +6,6 @@ Dir[tasks_dir].each do |file| @@ -6,4 +6,6 @@ Dir[tasks_dir].each do |file|
6 load file 6 load file
7 end 7 end
8 8
9 -Rake.application['start'].invoke 9 +unless ENV['TRAVIS']
  10 + Rake.application['start'].invoke
  11 +end