I posted this on SO, but figured it might be more appropriate here since it's an actual testing question.
I have a CI.yaml file (For Gitlab CI) that builds our Rails app and runs integration (Rspec/Capybara tests)
before_script: - rbenv install --skip-existing `cat .ruby-version` - bundle install - RAILS_ENV=test bundle exec rake db:drop db:create db:migrate db:seed rspec: script: - bundle exec rspec . --tag type:feature tags: - ruby
Pretty simple right? However i'll need to spin up a Rails app server to actually run these on via
bundle exec rails s
Does anyone know the best way to stop such a server on a CI stack? (Were using Gitlab). Im pretty sure Gitlab doesn't stop any servers running after the build, so i'd need to kill it some way but im not sure of the best way.