-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Lando when running spec tests, gh-256
- Loading branch information
Showing
4 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# frozen_string_literal: true | ||
|
||
namespace :server do | ||
desc "Start solr and fedora servers for testing" | ||
task :start do | ||
require 'rails' | ||
`lando start` | ||
puts "Started Solr/Fedora" | ||
end | ||
|
||
desc "Cleanup test servers" | ||
task :clean do | ||
require 'rails' | ||
`lando destroy -y` | ||
`lando start` | ||
puts "Cleaned/Started Solr/Fedora" | ||
end | ||
|
||
desc "Stop test servers" | ||
task :stop do | ||
`lando stop -y` | ||
end | ||
end |