Skip to content

Commit

Permalink
Feature: Migrate to ruby 3.2 (#32)
Browse files Browse the repository at this point in the history
* add option to run import metadata graphs using docker for testing

* add virtuoso custom scripts

* simplify compare count to not do the benchmarks

* add benchmarking tests

* update virtuoso docker image

* add benchmarks examples documentation

* a method no more eixstent in ruby 3

* migrate to minitest and activesupport 5

* run the CI tests using 3.2 instead of 2.7
  • Loading branch information
syphax-bouazzouni authored Feb 6, 2025
1 parent bda8914 commit 8522be7
Show file tree
Hide file tree
Showing 21 changed files with 342 additions and 411 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ruby-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
strategy:
fail-fast: false
matrix:
goo-slice: [ '20', '100', '500' ]
ruby-version: [ '2.7' ]
goo-slice: [ '100' ]
ruby-version: [ '3.2.0' ]
triplestore: [ 'fs', 'ag', 'vo', 'gb' ]
runs-on: ubuntu-latest
steps:
Expand All @@ -34,7 +34,7 @@ jobs:
# http://docs.codecov.io/docs/testing-with-docker
run: |
ci_env=`bash <(curl -s https://codecov.io/env)`
GOO_SLICES=${{ matrix.goo-slice }} bundle exec rake test:docker:${{ matrix.triplestore }} TESTOPTS="-v"
GOO_SLICES=${{ matrix.goo-slice }} bundle exec rake test:docker:${{ matrix.triplestore }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ processed_files/
queries.txt

graph_comparison.csv

6 changes: 4 additions & 2 deletions Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ install_plugin Capistrano::SCM::Git
# https://github.com/capistrano/passenger
#
# require "capistrano/rvm"
# require "capistrano/rbenv"
require "capistrano/rbenv"
# require "capistrano/chruby"
# require "capistrano/bundler"
require "capistrano/bundler"
# require "capistrano/rails/assets"
# require "capistrano/rails/migrations"
# require "capistrano/passenger"
require 'capistrano/locally'
#require 'new_relic/recipes' # announce deployments in NewRelic

# Load custom tasks from `lib/capistrano/tasks` if you have any defined
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }
22 changes: 14 additions & 8 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,27 @@ gem 'sys-proctable'
gem 'request_store'
gem 'parallel'
gem 'json-ld'
gem 'ffi', '~> 1.16.3'
gem 'activesupport', '~> 3.2.22.5'
gem 'ffi'
gem 'activesupport', '~> 5.0'
gem 'rackup'

# Monitoring
gem 'cube-ruby', require: 'cube'

gem 'goo', github: 'ontoportal-lirmm/goo', branch: 'development'
gem 'goo', github: 'ontoportal-lirmm/goo', branch: 'feature/migrate-ruby-3.2'
gem 'ontologies_linked_data', github: 'ontoportal-lirmm/ontologies_linked_data', branch: 'feature/migrate-ruby-3.2'
gem 'sparql-client', github: 'ontoportal-lirmm/sparql-client', branch: 'development'
gem 'ontologies_linked_data', github: 'ontoportal-lirmm/ontologies_linked_data', branch: 'development'
gem 'ncbo_annotator', github: 'ontoportal-lirmm/ncbo_annotator', branch: 'development'

# Testing
group :test do
gem 'email_spec'
gem 'minitest', '< 5.0'
gem 'minitest'
gem 'simplecov'
gem 'simplecov-cobertura' # for codecov.io
gem 'test-unit-minitest'
# gem 'test-unit-minitest'
gem 'crack', '0.4.5'
gem 'webmock'
gem "minitest-hooks", "~> 1.5"
gem 'webrick'
end

group :development do
Expand All @@ -51,6 +55,8 @@ group :development do
gem 'ed25519', '>= 1.2', '< 2.0', require: false
end

gem 'cube-ruby'
gem "binding_of_caller", "~> 1.0"
gem 'concurrent-ruby', '1.3.4'
gem 'net-smtp'
gem 'net-ftp'
Loading

0 comments on commit 8522be7

Please sign in to comment.