logstash/.travis.yml
Suyog Rao 4a6c1f2cd6 Add feature flag support for RATS (#6328)
* Add feature flag support for RATS

Adds feature flag support for RATS integration tests. First feature to use it
is persistent_queues. You can enable a FF in travis by using the travis matrix
and adding a env variable called FEATURE_FLAG=<feature_name>.

To use feature flag, you need a logstash.yml file which has this feature turned on.
Unfortunately --path.settings needs an entire dir where logstash.yml is located, not
just the logstash.yml file, so we need to checkin the fixture which has the feature yml
and log4j.

For example, you can now set FEATURE_FLAG=persistent_queues which means travis will
run tests twice, one with this feature enabled and once without it. When the feature is enaabled
the logstash.yml located in qa/integration/fixtures/persistent_queues is picked up whenever LS is started in tests
2016-12-01 11:30:55 -08:00

25 lines
686 B
YAML

sudo: false
language: ruby
cache:
directories:
- vendor/bundle
- ~/.gradle/
rvm:
- jruby-1.7.25
jdk:
- oraclejdk8
env:
- INTEGRATION=true
- INTEGRATION=true FEATURE_FLAG=persistent_queues
before_install:
# Force bundler 1.12.5 because version 1.13 has issues, see https://github.com/fastlane/fastlane/issues/6065#issuecomment-246044617
- gem uninstall -i /home/travis/.rvm/gems/jruby-1.7.25@global bundler
- gem install bundler -v 1.12.5 --no-rdoc --no-ri --no-document --quiet
install:
- rake test:install-core
- ci/travis_integration_install.sh
before_script:
- echo "--order rand" > .rspec
script:
- rake test:core
- ci/travis_integration_run.sh