Adding travis CI

This commit is contained in:
Eugen Rochko 2016-02-18 01:44:36 +01:00
parent c376932f31
commit 237a9c2e81
5 changed files with 30 additions and 3 deletions

12
.travis.yml Normal file
View File

@ -0,0 +1,12 @@
language: ruby
cache: bundler
rvm:
- 2.0.0
- 2.1
- 2.2
- ruby-head
bundler_args: --without development --retry=3 --jobs=3
script: bundle exec rake

View File

@ -1,11 +1,12 @@
source "https://rubygems.org"
gem 'pry'
gem 'pry', '>= 0.10.3'
group :test do
gem 'rspec', '>= 3.0'
gem 'nyan-cat-formatter'
gem 'webmock'
gem 'rake'
end
gemspec

View File

@ -32,10 +32,11 @@ GEM
mini_portile2 (~> 2.0.0.rc2)
nyan-cat-formatter (0.11)
rspec (>= 2.99, >= 2.14.2, < 4)
pry (0.10.1)
pry (0.10.3)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
rake (10.5.0)
rspec (3.4.0)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
@ -66,6 +67,7 @@ DEPENDENCIES
bundler (~> 1.3)
goldfinger!
nyan-cat-formatter
pry
pry (>= 0.10.3)
rake
rspec (>= 3.0)
webmock

View File

@ -2,8 +2,12 @@ Goldfinger, a Webfinger client for Ruby
=======================================
[![Gem Version](http://img.shields.io/gem/v/goldfinger.svg)][gem]
[![Build Status](http://img.shields.io/travis/gargron/goldfinger.svg)][travis]
[![Dependency Status](http://img.shields.io/gemnasium/gargron/goldfinger.svg)][gemnasium]
[gem]: https://rubygems.org/gems/goldfinger
[travis]: https://travis-ci.org/gargron/goldfinger
[gemnasium]: https://gemnasium.com/gargron/goldfinger
A Webfinger client for Ruby. Supports `application/xrd+xml` and `application/jrd+json` responses. Raises `Goldfinger::NotFoundError` on failure to fetch the Webfinger or XRD data, or `Goldfinger::SSLError` if something is wrong with the HTTPS connection it uses.

8
Rakefile Normal file
View File

@ -0,0 +1,8 @@
require 'rspec/core/rake_task'
require 'bundler/gem_tasks'
RSpec::Core::RakeTask.new(:spec) do |task|
task.rspec_opts = ['--color', '--format', 'documentation']
end
task :default => :spec