Skip to content

Commit

Permalink
Add github actions and drop Travis (#48)
Browse files Browse the repository at this point in the history
* Add github actions and drop Travis

* Lock SimpleCov < 0.18
  • Loading branch information
david942j authored Jan 20, 2021
1 parent 27a5b19 commit 84882de
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 34 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: build

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

jobs:
test:

runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, macos]
ruby-version: ['2.6', '2.7', head]

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake
- name: Publish code coverage
if: ${{ success() && runner.os == 'Linux' }}
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/david942j/rbelftools.svg?branch=master)](https://travis-ci.org/david942j/rbelftools)
[![Build Status](https://github.com/david942j/rbelftools/workflows/build/badge.svg)](https://github.com/david942j/rbelftools/actions)
[![Build Status](https://ci.appveyor.com/api/projects/status/sq5c4gli8ir95h6k?svg=true&retina=true)](https://ci.appveyor.com/project/david942j/rbelftools)
[![Code Climate](https://codeclimate.com/github/david942j/rbelftools/badges/gpa.svg)](https://codeclimate.com/github/david942j/rbelftools)
[![Issue Count](https://codeclimate.com/github/david942j/rbelftools/badges/issue_count.svg)](https://codeclimate.com/github/david942j/rbelftools)
Expand Down
6 changes: 2 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ version: 1.0.{build}-{branch}

environment:
matrix:
- RUBY_VERSION: '24'
- RUBY_VERSION: '24-x64'
- RUBY_VERSION: '25'
- RUBY_VERSION: '25-x64'
- RUBY_VERSION: '26'
- RUBY_VERSION: '26-x64'

install:
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
Expand Down
2 changes: 1 addition & 1 deletion elftools.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rake', '~> 13.0'
s.add_development_dependency 'rspec', '~> 3.7'
s.add_development_dependency 'rubocop', '~> 0.59'
s.add_development_dependency 'simplecov', '~> 0.17'
s.add_development_dependency 'simplecov', '~> 0.17', '< 0.18'
s.add_development_dependency 'yard', '~> 0.9'
end

0 comments on commit 84882de

Please sign in to comment.