Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ jobs:
matrix:
java-version: [8, 21]
ruby-version: [jruby-9.4, jruby-10]
bundler-version: [2.6.3, 2.7.1]
task: ['', integration]
exclude:
# JRuby 10 requires Java 21 minimum
- ruby-version: jruby-10
java-version: 8
# Bundler 2.7.1 requires Ruby 3.2
- ruby-version: jruby-9.4
bundler-version: 2.7.1

fail-fast: false

Expand All @@ -51,8 +55,11 @@ jobs:
- name: Remove jruby-launcher # not sure where this is coming from but causes some specs to fail
run: gem uninstall -a jruby-launcher

- name: Remove jruby-launcher # not sure where this is coming from but causes some specs to fail
run: gem install bundler -v ${{ matrix.bundler-version }}

- name: Install dependencies
run: bundle install --jobs=3 --retry=3
run: bundle _${{ matrix.bundler-version }}_ install --jobs=3 --retry=3

- name: Run tests
run: bundle exec rake ${{ matrix.task }}
run: bundle _${{ matrix.bundler-version }}_ exec rake ${{ matrix.task }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ pkg
doc
.bundle
nbproject
target
**/target/*
!**/target/.keep
Gemfile.lock
.idea
warbler.iml
Expand All @@ -15,3 +16,4 @@ integration/**/*.iml
build.log
.ruby-version
.rspec_status
/integration/rails7_test/src/main/ruby/db/*.sqlite3*
8 changes: 6 additions & 2 deletions Mavenfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ end

properties( 'jruby.plugins.version' => '3.0.6',
'jruby.version' => '9.4.13.0',
'jetty.version' => '9.4.31.v20200723' )
'jetty.version' => '8.1.16.v20140903',
'bundler.version' => '2.6.3')

# dependencies needed for compilation
scope :provided do
Expand All @@ -28,13 +29,16 @@ end

plugin :compiler, '3.1', :source => '8', :target => '8'

gem 'bundler', '${bundler.version}'
gem 'jruby-jars', '${jruby.version}'

plugin :invoker, '1.8' do
execute_goals( :install, :run,
:id => 'integration-test',
:properties => { 'warbler.version' => '${project.version}',
'jruby.version' => '${jruby.version}',
'jetty.version' => '${jetty.version}',
'bundler.version' => '2.6.3',
'bundler.version' => '${bundler.version}',
'jruby.plugins.version' => '${jruby.plugins.version}' },

:goals => ['verify'],
Expand Down
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ task :default => :spec
# use Mavenfile to define :jar task
require 'maven/ruby/maven'
mvn = Maven::Ruby::Maven.new
mvn << "-Djruby.version=#{JRUBY_VERSION}"
mvn << "-Dbundler.version=#{Bundler::VERSION}"
mvn << '--no-transfer-progress'

if defined?(JRUBY_VERSION) && !JRUBY_VERSION.start_with?('9.0')
Expand Down
55 changes: 35 additions & 20 deletions integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<properties>
<jruby.plugins.version>3.0.6</jruby.plugins.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jruby.version>9.4.13.0</jruby.version>
<jruby.version>${jruby.version}</jruby.version>
<warbler.version>2.0.4</warbler.version>
<bundler.version>2.6.3</bundler.version>
<bundler.version>${bundler.version}</bundler.version>
<gem.home>${basedir}/../../pkg/rubygems</gem.home>
<gem.path>${basedir}/../../pkg/rubygems</gem.path>
</properties>
Expand All @@ -37,6 +37,12 @@
<version>${warbler.version}</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>jruby-jars</artifactId>
<version>${jruby.version}</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down Expand Up @@ -79,16 +85,16 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jruby.maven</groupId>
<artifactId>gem-maven-plugin</artifactId>
<version>${jruby.plugins.version}</version>
<executions>
<execution>
<goals><goal>initialize</goal></goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jruby.maven</groupId>
<artifactId>gem-maven-plugin</artifactId>
<version>${jruby.plugins.version}</version>
<executions>
<execution>
<goals><goal>initialize</goal></goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
Expand All @@ -102,12 +108,25 @@
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.26</version>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.version}</version>
<configuration>
<webApp>${project.build.directory}/test.war</webApp>
<webAppConfig>
<contextPath>/</contextPath>
<configurationClasses>
<configurationClass>org.eclipse.jetty.webapp.WebXmlConfiguration</configurationClass>
<configurationClass>org.eclipse.jetty.webapp.WebInfConfiguration</configurationClass>
<configurationClass>org.eclipse.jetty.webapp.TagLibConfiguration</configurationClass>
<configurationClass>org.eclipse.jetty.webapp.MetaInfConfiguration</configurationClass>
<configurationClass>org.eclipse.jetty.webapp.FragmentConfiguration</configurationClass>
<configurationClass>org.eclipse.jetty.webapp.JettyWebXmlConfiguration</configurationClass>
<!-- intentionally no AnnotationConfiguration -->
</configurationClasses>
</webAppConfig>
<stopPort>9966</stopPort>
<stopKey>warbler_stop</stopKey>
<scanIntervalSeconds>0</scanIntervalSeconds>
<daemon>true</daemon>
</configuration>
<executions>
<execution>
Expand All @@ -116,10 +135,6 @@
<goals>
<goal>run-war</goal>
</goals>
<configuration>
<scanIntervalSeconds>0</scanIntervalSeconds>
<daemon>true</daemon>
</configuration>
</execution>
<execution>
<id>stop-jetty</id>
Expand All @@ -146,7 +161,7 @@
<executions>
<execution>
<id>bundle-install</id>
<goals><goal>jruby</goal></goals>
<goals><goal>jruby</goal></goals>
<configuration>
<args>-C ${basedir}/src/main/ruby -S ${gem.home}/bin/bundle install</args>
</configuration>
Expand Down
44 changes: 0 additions & 44 deletions integration/rails4_test/src/main/ruby/Gemfile

This file was deleted.

28 changes: 0 additions & 28 deletions integration/rails4_test/src/main/ruby/README.rdoc

This file was deleted.

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions integration/rails4_test/src/main/ruby/config/application.rb

This file was deleted.

4 changes: 0 additions & 4 deletions integration/rails4_test/src/main/ruby/config/boot.rb

This file was deleted.

5 changes: 0 additions & 5 deletions integration/rails4_test/src/main/ruby/config/environment.rb

This file was deleted.

This file was deleted.

Loading