Skip to content

Commit

Permalink
Move from Travis CI to GitHub CI (#64)
Browse files Browse the repository at this point in the history
* Move from Travis CI to GitHub CI

* Skip wget tests on JRuby

It seems that http_parser.rb doesn't compile on newest JRuby anymore.
We'll eventually want to replace it with whatever http.rb is using.
  • Loading branch information
janko committed Sep 12, 2021
1 parent c2ac5db commit b8d7dab
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 21 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ '**' ]

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "2.3"
- "2.4"
- "2.5"
- "2.6"
- "2.7"
- "3.0"
- "jruby-9.2"

steps:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Pull httpbin
run: docker pull kennethreitz/httpbin

- name: Run tests
run: bundle exec rake test
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion Rakefile
Expand Up @@ -3,7 +3,9 @@ require "rake/testtask"

Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/**/*_test.rb']
test_files = FileList['test/**/*_test.rb']
test_files -= ["test/wget_test.rb"] if RUBY_ENGINE == "jruby"
t.test_files = test_files
t.warning = true
end

Expand Down
2 changes: 1 addition & 1 deletion down.gemspec
Expand Up @@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "http", "~> 4.3"
end
spec.add_development_dependency "posix-spawn" unless RUBY_ENGINE == "jruby"
spec.add_development_dependency "http_parser.rb"
spec.add_development_dependency "http_parser.rb" unless RUBY_ENGINE == "jruby"
spec.add_development_dependency "docker-api"
spec.add_development_dependency "warning" if RUBY_VERSION >= "2.4"
end

0 comments on commit b8d7dab

Please sign in to comment.