Skip to content

Commit 89a68f9

Browse files
authored
Merge pull request #222 from bjfish/truffleruby-ci-2
Add TruffleRuby to CI
2 parents 1f789ce + cb0509d commit 89a68f9

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ jobs:
1818
'2.6',
1919
'2.5',
2020
ruby-head,
21-
ruby-debug
21+
ruby-debug,
22+
truffleruby,
23+
truffleruby-head
2224
]
2325
env:
2426
ORACLE_HOME: /usr/lib/oracle/21/client64
@@ -69,6 +71,10 @@ jobs:
6971
- name: Create database user
7072
run: |
7173
./ci/setup_accounts.sh
74+
- name: Disable ActiveRecord for TruffleRuby
75+
run: |
76+
echo "NO_ACTIVERECORD=true" >> $GITHUB_ENV
77+
if: "contains(matrix.ruby, 'truffleruby')"
7278
- name: Bundle install
7379
run: |
7480
bundle install --jobs 4 --retry 3

spec/spec_helper.rb

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
require "rubygems"
22
require "bundler"
33
Bundler.setup(:default, :development)
4-
require "simplecov"
54

6-
SimpleCov.configure do
7-
load_profile "root_filter"
8-
load_profile "test_frameworks"
9-
end
5+
unless ENV["NO_ACTIVERECORD"]
6+
require "simplecov"
107

11-
ENV["COVERAGE"] && SimpleCov.start do
12-
add_filter "/.rvm/"
8+
SimpleCov.configure do
9+
load_profile "root_filter"
10+
load_profile "test_frameworks"
11+
end
12+
13+
ENV["COVERAGE"] && SimpleCov.start do
14+
add_filter "/.rvm/"
15+
end
1316
end
1417

1518
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))

0 commit comments

Comments
 (0)