-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that CircleCI executes nightly test suites (#386)
* Update the CircleCI Orb to samvera/circleci-orb@1.0 * Use the samvera/ruby_fcrepo_solr_redis_postgres task for ensuring that Solr authentication is supported * Ensure that libsqlite3-dev is installed as a system package * Ensure that samvera/install_solr_core is used in place of samvera/install_solr_active_fedora_core * Update the Ruby releases within the test matrix to 2.7.5, 2.6.9, and 2.5.9
- Loading branch information
1 parent
2b00cd4
commit ab91c28
Showing
2 changed files
with
61 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,102 @@ | ||
--- | ||
version: 2.1 | ||
orbs: | ||
samvera: samvera/circleci-orb@0 | ||
samvera: samvera/circleci-orb@1.0 | ||
jobs: | ||
test: | ||
parameters: | ||
ruby_version: | ||
type: string | ||
bundler_version: | ||
type: string | ||
default: 1.17.3 | ||
default: 2.3.10 | ||
rails_version: | ||
type: string | ||
environment: | ||
RAILS_VERSION: << parameters.rails_version >> | ||
NOKOGIRI_USE_SYSTEM_LIBRARIES: true | ||
executor: | ||
name: 'samvera/ruby_fcrepo_solr' | ||
name: 'samvera/ruby_fcrepo_solr_redis_postgres' | ||
ruby_version: << parameters.ruby_version >> | ||
steps: | ||
- run: 'sudo apt-get update && sudo apt-get install clamav' | ||
- run: 'sudo apt-get update' | ||
- run: 'sudo apt-get install -y clamav libsqlite3-dev' | ||
- run: 'sudo freshclam' | ||
|
||
- samvera/cached_checkout | ||
|
||
- samvera/bundle_for_gem: | ||
ruby_version: << parameters.ruby_version >> | ||
bundler_version: << parameters.bundler_version >> | ||
project: hydra-works | ||
- samvera/install_solr_active_fedora_core | ||
|
||
- samvera/install_solr_core | ||
|
||
- samvera/parallel_rspec | ||
|
||
workflows: | ||
version: 2 | ||
ci: | ||
jobs: | ||
# Rails 6.0 | ||
- test: | ||
name: ruby2-7_rails6-0 | ||
ruby_version: 2.7.5 | ||
rails_version: 6.0.3.1 | ||
- test: | ||
name: ruby2-6_rails6-0 | ||
ruby_version: 2.6.9 | ||
rails_version: 6.0.3.1 | ||
- test: | ||
name: ruby2-5_rails6-0 | ||
ruby_version: 2.5.9 | ||
rails_version: 6.0.3.1 | ||
# Rails 5.2 | ||
- test: | ||
name: ruby2-7_rails5-2 | ||
ruby_version: 2.7.5 | ||
rails_version: 5.2.4.3 | ||
- test: | ||
name: ruby2-6_rails5-2 | ||
ruby_version: 2.6.9 | ||
rails_version: 5.2.4.3 | ||
- test: | ||
name: ruby2-5_rails5-2 | ||
ruby_version: 2.5.9 | ||
rails_version: 5.2.4.3 | ||
|
||
nightly: | ||
triggers: | ||
- schedule: | ||
cron: "0 0 * * *" | ||
filters: | ||
branches: | ||
only: | ||
- main | ||
jobs: | ||
# Rails 6.0 | ||
- test: | ||
name: ruby2-7_rails6-0 | ||
ruby_version: 2.7.1 | ||
ruby_version: 2.7.5 | ||
rails_version: 6.0.3.1 | ||
- test: | ||
name: ruby2-6_rails6-0 | ||
ruby_version: 2.6.6 | ||
ruby_version: 2.6.9 | ||
rails_version: 6.0.3.1 | ||
- test: | ||
name: ruby2-5_rails6-0 | ||
ruby_version: 2.5.8 | ||
ruby_version: 2.5.9 | ||
rails_version: 6.0.3.1 | ||
# Rails 5.2 | ||
- test: | ||
name: ruby2-7_rails5-2 | ||
ruby_version: 2.7.1 | ||
ruby_version: 2.7.5 | ||
rails_version: 5.2.4.3 | ||
- test: | ||
name: ruby2-6_rails5-2 | ||
ruby_version: 2.6.6 | ||
ruby_version: 2.6.9 | ||
rails_version: 5.2.4.3 | ||
- test: | ||
name: ruby2-5_rails5-2 | ||
ruby_version: 2.5.8 | ||
ruby_version: 2.5.9 | ||
rails_version: 5.2.4.3 |
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