Skip to content

Commit

Permalink
Remove TravisCI and add Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
javierav committed Mar 2, 2024
1 parent fb310df commit 6329495
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 43 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Tests
on: [pull_request, push]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "3.1"
- "3.2"
- "3.3"
- "head"
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
steps:
- uses: actions/checkout@v4
- name: Setup Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake test
- name: Upload coverage to Code Climate
if: ${{ success() }}
run: |
if [ -n "$CC_TEST_REPORTER_ID" ]; then
curl -L -s https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter after-build
fi
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Contributing to the IPAddress Gem

[![Build Status](https://travis-ci.org/ipaddress-gem/ipaddress.svg?branch=master)](https://travis-ci.org/ipaddress-gem/ipaddress) [![Code Climate](https://codeclimate.com/github/ipaddress-gem/ipaddress/badges/gpa.svg)](https://codeclimate.com/github/ipaddress-gem/ipaddress) [![Dependency Status](https://www.versioneye.com/user/projects/57001305fcd19a0051853bde/badge.svg?style=flat)](https://www.versioneye.com/user/projects/57001305fcd19a0051853bde)
[![Build Status](https://github.com/ipaddress-gem/ipaddress/actions/workflows/ci/badge.svg)](https://github.com/ipaddress-gem/ipaddress/actions)
[![Code Climate](https://codeclimate.com/github/ipaddress-gem/ipaddress/badges/gpa.svg)](https://codeclimate.com/github/ipaddress-gem/ipaddress)
[![Dependency Status](https://www.versioneye.com/user/projects/57001305fcd19a0051853bde/badge.svg?style=flat)](https://www.versioneye.com/user/projects/57001305fcd19a0051853bde)

This gem is run by people who have jobs. So please understand if we can't always prioritize PRs and issues.

Expand All @@ -23,8 +25,6 @@ All submissions of code must include test coverage which describes intent and ex

Unit tests are expected to execute quickly. We will ask you to revise any long-running tests.

We intend to add [Travis CI](https://travis-ci.org/) for automatic execution of branch tests.

## Versioning: Jeweler and Semantic Versioning

This repo uses [semantic versioning](http://semver.org/) implemented by the [Jeweler Gem](https://github.com/technicalpickles/jeweler). Please do not update the version by editting files, instead, you may increment or modify the version using the Rake tasks added by Jeweler.
Expand All @@ -36,4 +36,4 @@ rake version:bump:major # Bump the major version by 1
rake version:bump:minor # Bump the a minor version by 1
rake version:bump:patch # Bump the patch version by 1
rake version:write # Writes out an explicit version
```
```
4 changes: 1 addition & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ source "https://rubygems.org"

group :development do
gem 'bundler', '>= 1.0'
gem 'rake', '10.5.0'
gem 'rake'
gem 'minitest', '~> 5.8', '>= 5.8.4'
gem 'pry', '>= 0.10.1'
gem 'travis', '>= 1.8.2'
gem 'jeweler', '>=2.0.1'
gem 'codeclimate-test-reporter'
gem 'simplecov'
end
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,9 @@ typical usage.

* Ruby 1.9.3 or later

Please refer to [Travis CI](https://travis-ci.org/ipaddress-gem/ipaddress) for
Build Tests on specific versions of Ruby.

[<img src="https://travis-ci.org/ipaddress-gem/ipaddress.svg?branch=master"
alt="Build Status" />](https://travis-ci.org/ipaddress-gem/ipaddress) [<img
src="https://codeclimate.com/github/ipaddress-gem/ipaddress/badges/gpa.svg"
/>](https://codeclimate.com/github/ipaddress-gem/ipaddress) [<img
src="https://www.versioneye.com/user/projects/57001305fcd19a0051853bde/badge.s
vg?style=flat" alt="Dependency Status"
/>](https://www.versioneye.com/user/projects/57001305fcd19a0051853bde)
[![Build Status](https://github.com/ipaddress-gem/ipaddress/actions/workflows/ci/badge.svg)](https://github.com/ipaddress-gem/ipaddress/actions)
[![Code Climate](https://codeclimate.com/github/ipaddress-gem/ipaddress/badges/gpa.svg)](https://codeclimate.com/github/ipaddress-gem/ipaddress)
[![Dependency Status](https://www.versioneye.com/user/projects/57001305fcd19a0051853bde/badge.svg?style=flat)](https://www.versioneye.com/user/projects/57001305fcd19a0051853bde)

IPAddress 0.8.2 was manually tested on:

Expand Down
7 changes: 0 additions & 7 deletions ipaddress.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Gem::Specification.new do |s|
s.files = [
".document",
".rock.yml",
".travis.yml",
"CHANGELOG.md",
"CONTRIBUTING.md",
"Gemfile",
Expand Down Expand Up @@ -56,26 +55,20 @@ Gem::Specification.new do |s|
s.add_development_dependency(%q<rake>, [">= 0"])
s.add_development_dependency(%q<minitest>, [">= 5.8.4", "~> 5.8"])
s.add_development_dependency(%q<pry>, [">= 0.10.1"])
s.add_development_dependency(%q<travis>, [">= 1.8.2"])
s.add_development_dependency(%q<jeweler>, [">= 2.0.1"])
s.add_development_dependency(%q<codeclimate-test-reporter>, [">= 0"])
else
s.add_dependency(%q<bundler>, [">= 1.0"])
s.add_dependency(%q<rake>, [">= 0"])
s.add_dependency(%q<minitest>, [">= 5.8.4", "~> 5.8"])
s.add_dependency(%q<pry>, [">= 0.10.1"])
s.add_dependency(%q<travis>, [">= 1.8.2"])
s.add_dependency(%q<jeweler>, [">= 2.0.1"])
s.add_dependency(%q<codeclimate-test-reporter>, [">= 0"])
end
else
s.add_dependency(%q<bundler>, [">= 1.0"])
s.add_dependency(%q<rake>, [">= 0"])
s.add_dependency(%q<minitest>, [">= 5.8.4", "~> 5.8"])
s.add_dependency(%q<pry>, [">= 0.10.1"])
s.add_dependency(%q<travis>, [">= 1.8.2"])
s.add_dependency(%q<jeweler>, [">= 2.0.1"])
s.add_dependency(%q<codeclimate-test-reporter>, [">= 0"])
end
end

0 comments on commit 6329495

Please sign in to comment.