Skip to content

Commit

Permalink
Merge pull request #331 from eregon/test-truffleruby
Browse files Browse the repository at this point in the history
Test Rake on TruffleRuby
  • Loading branch information
hsbt authored Nov 26, 2019
2 parents c8251e2 + 18508c4 commit 8d3c549
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: macos

on: [push]
on: [push, pull_request]

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ubuntu-rvm.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: ubuntu-rvm

on: [push]
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ 'jruby-head', 'jruby-9.2.9.0', 'ruby-head', '2.3.8', '2.2.10' ]
ruby: [ 'jruby-head', 'jruby-9.2.9.0', 'truffleruby', 'ruby-head', '2.3.8', '2.2.10' ]
steps:
- uses: actions/checkout@master
- name: Set up RVM
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: ubuntu

on: [push]
on: [push, pull_request]

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: windows

on: [push]
on: [push, pull_request]

jobs:
build:
Expand Down
6 changes: 5 additions & 1 deletion test/test_rake_clean.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

class TestRakeClean < Rake::TestCase # :nodoc:
def test_clean
load "rake/clean.rb", true
if RUBY_ENGINE == 'truffleruby' and RUBY_ENGINE_VERSION == '19.3.0'
load "rake/clean.rb" # TruffleRuby 19.3 does not set self correctly with wrap=true
else
load "rake/clean.rb", true
end

assert Rake::Task["clean"], "Should define clean"
assert Rake::Task["clobber"], "Should define clobber"
Expand Down

0 comments on commit 8d3c549

Please sign in to comment.