I’m working on setting up CircleCI for a Rails 5.1 / Ruby 2.3.1 application. We are looking to use Circle primarily to run our specs.
This application uses ThinkingSphinx for search, and we have some specs that rely on search to pass. ThinkingSphinx is configured for RSpec using the guide in their docs:
We’re using SQL-backed indices.
The first spec that uses sphinx passes on Circle, but all subsequent specs fail. Outside of Circle, everything passes.
Does anyone have advice about how to get Sphinx-related specs to run on CircleCI?
Rspec version - 3.8.2
Thinking Sphinx version - 3.2.0
In my config.yml file, I download sphinx:
- run: name: Install sphinx dependencies command: sudo apt-get install sphinxsearch
And later on, run my specs using:
- run: name: run tests command: | mkdir /tmp/test-results TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)" bundle exec rspec --format progress $TEST_FILES