Skip to content

Commit 9daf913

Browse files
committed
Remove TravisCI and add Github Actions
1 parent fb310df commit 9daf913

7 files changed

Lines changed: 46 additions & 43 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: monthly

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
on: [pull_request, push]
3+
jobs:
4+
tests:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
ruby:
10+
- "3.1"
11+
- "3.2"
12+
- "3.3"
13+
- "head"
14+
env:
15+
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup Ruby ${{ matrix.ruby }}
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: ${{ matrix.ruby }}
22+
bundler-cache: true
23+
- name: Run tests
24+
run: bundle exec rake test
25+
- name: Upload coverage to Code Climate
26+
if: ${{ success() }}
27+
run: |
28+
if [ -n "$CC_TEST_REPORTER_ID" ]; then
29+
curl -L -s https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
30+
chmod +x ./cc-test-reporter
31+
./cc-test-reporter after-build
32+
fi

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Contributing to the IPAddress Gem
22

3-
[![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)
3+
[![Build Status](https://github.com/ipaddress-gem/ipaddress/actions/workflows/ci/badge.svg)](https://github.com/ipaddress-gem/ipaddress/actions)
4+
[![Code Climate](https://codeclimate.com/github/ipaddress-gem/ipaddress/badges/gpa.svg)](https://codeclimate.com/github/ipaddress-gem/ipaddress)
5+
[![Dependency Status](https://www.versioneye.com/user/projects/57001305fcd19a0051853bde/badge.svg?style=flat)](https://www.versioneye.com/user/projects/57001305fcd19a0051853bde)
46

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

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

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

26-
We intend to add [Travis CI](https://travis-ci.org/) for automatic execution of branch tests.
27-
2828
## Versioning: Jeweler and Semantic Versioning
2929

3030
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.
@@ -36,4 +36,4 @@ rake version:bump:major # Bump the major version by 1
3636
rake version:bump:minor # Bump the a minor version by 1
3737
rake version:bump:patch # Bump the patch version by 1
3838
rake version:write # Writes out an explicit version
39-
```
39+
```

Gemfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ source "https://rubygems.org"
22

33
group :development do
44
gem 'bundler', '>= 1.0'
5-
gem 'rake', '10.5.0'
5+
gem 'rake'
66
gem 'minitest', '~> 5.8', '>= 5.8.4'
77
gem 'pry', '>= 0.10.1'
8-
gem 'travis', '>= 1.8.2'
98
gem 'jeweler', '>=2.0.1'
10-
gem 'codeclimate-test-reporter'
119
gem 'simplecov'
1210
end

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,9 @@ typical usage.
1212

1313
* Ruby 1.9.3 or later
1414

15-
Please refer to [Travis CI](https://travis-ci.org/ipaddress-gem/ipaddress) for
16-
Build Tests on specific versions of Ruby.
17-
18-
[<img src="https://travis-ci.org/ipaddress-gem/ipaddress.svg?branch=master"
19-
alt="Build Status" />](https://travis-ci.org/ipaddress-gem/ipaddress) [<img
20-
src="https://codeclimate.com/github/ipaddress-gem/ipaddress/badges/gpa.svg"
21-
/>](https://codeclimate.com/github/ipaddress-gem/ipaddress) [<img
22-
src="https://www.versioneye.com/user/projects/57001305fcd19a0051853bde/badge.s
23-
vg?style=flat" alt="Dependency Status"
24-
/>](https://www.versioneye.com/user/projects/57001305fcd19a0051853bde)
15+
[![Build Status](https://github.com/ipaddress-gem/ipaddress/actions/workflows/ci/badge.svg)](https://github.com/ipaddress-gem/ipaddress/actions)
16+
[![Code Climate](https://codeclimate.com/github/ipaddress-gem/ipaddress/badges/gpa.svg)](https://codeclimate.com/github/ipaddress-gem/ipaddress)
17+
[![Dependency Status](https://www.versioneye.com/user/projects/57001305fcd19a0051853bde/badge.svg?style=flat)](https://www.versioneye.com/user/projects/57001305fcd19a0051853bde)
2518

2619
IPAddress 0.8.2 was manually tested on:
2720

ipaddress.gemspec

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Gem::Specification.new do |s|
2222
s.files = [
2323
".document",
2424
".rock.yml",
25-
".travis.yml",
2625
"CHANGELOG.md",
2726
"CONTRIBUTING.md",
2827
"Gemfile",
@@ -56,26 +55,20 @@ Gem::Specification.new do |s|
5655
s.add_development_dependency(%q<rake>, [">= 0"])
5756
s.add_development_dependency(%q<minitest>, [">= 5.8.4", "~> 5.8"])
5857
s.add_development_dependency(%q<pry>, [">= 0.10.1"])
59-
s.add_development_dependency(%q<travis>, [">= 1.8.2"])
6058
s.add_development_dependency(%q<jeweler>, [">= 2.0.1"])
61-
s.add_development_dependency(%q<codeclimate-test-reporter>, [">= 0"])
6259
else
6360
s.add_dependency(%q<bundler>, [">= 1.0"])
6461
s.add_dependency(%q<rake>, [">= 0"])
6562
s.add_dependency(%q<minitest>, [">= 5.8.4", "~> 5.8"])
6663
s.add_dependency(%q<pry>, [">= 0.10.1"])
67-
s.add_dependency(%q<travis>, [">= 1.8.2"])
6864
s.add_dependency(%q<jeweler>, [">= 2.0.1"])
69-
s.add_dependency(%q<codeclimate-test-reporter>, [">= 0"])
7065
end
7166
else
7267
s.add_dependency(%q<bundler>, [">= 1.0"])
7368
s.add_dependency(%q<rake>, [">= 0"])
7469
s.add_dependency(%q<minitest>, [">= 5.8.4", "~> 5.8"])
7570
s.add_dependency(%q<pry>, [">= 0.10.1"])
76-
s.add_dependency(%q<travis>, [">= 1.8.2"])
7771
s.add_dependency(%q<jeweler>, [">= 2.0.1"])
78-
s.add_dependency(%q<codeclimate-test-reporter>, [">= 0"])
7972
end
8073
end
8174

0 commit comments

Comments
 (0)