Skip to content

Commit 03bc168

Browse files
committed
Better testing + coverage.
1 parent 7b625f4 commit 03bc168

File tree

5 files changed

+33
-5
lines changed

5 files changed

+33
-5
lines changed

.rspec

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--format documentation

.simplecov

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
SimpleCov.start do
3+
add_filter "/spec/"
4+
end
5+
6+
# Work correctly across forks:
7+
pid = Process.pid
8+
SimpleCov.at_exit do
9+
SimpleCov.result.format! if Process.pid == pid
10+
end
11+
12+
if ENV['TRAVIS']
13+
require 'coveralls'
14+
Coveralls.wear!
15+
end

.travis.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
language: ruby
2+
sudo: false
23
rvm:
3-
- 1.9
4-
- 2.0
4+
- 2.2
55
- 2.1
6+
- 2.0.0
7+
- 1.9.3
8+
- rbx-2
9+
matrix:
10+
allow_failures:
11+
- rvm: rbx-2
12+
env: COVERAGE=true

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
`Process::Daemon` is a stable and helpful base class for long running tasks and daemons. Provides standard `start`, `stop`, `restart`, `status` operations.
44

5-
[![Build Status](https://travis-ci.org/ioquatix/process-daemon.svg)](https://travis-ci.org/ioquatix/process-daemon)
5+
[![Build Status](https://travis-ci.org/ioquatix/process-daemon.svg?branch=master)](https://travis-ci.org/ioquatix/process-daemon)
6+
[![Code Climate](https://codeclimate.com/github/ioquatix/process-daemon.png)](https://codeclimate.com/github/ioquatix/process-daemon)
7+
[![Coverage Status](https://coveralls.io/repos/ioquatix/process-daemon/badge.svg?branch=master)](https://coveralls.io/r/ioquatix/process-daemon?branch=master)
68

79
## Installation
810

@@ -79,7 +81,7 @@ Then run `daemon.rb start`. To stop the daemon, run `daemon.rb stop`.
7981

8082
Released under the MIT license.
8183

82-
Copyright, 2014, by [Samuel G. D. Williams](http://www.codeotaku.com/samuel-williams).
84+
Copyright, 2015, by [Samuel G. D. Williams](http://www.codeotaku.com/samuel-williams).
8385

8486
Permission is hereby granted, free of charge, to any person obtaining a copy
8587
of this software and associated documentation files (the "Software"), to deal

Rakefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
require "bundler/gem_tasks"
22
require "rspec/core/rake_task"
33

4-
RSpec::Core::RakeTask.new(:spec)
4+
RSpec::Core::RakeTask.new(:spec) do |task|
5+
task.rspec_opts = ["--require", "simplecov"] if ENV['COVERAGE']
6+
end
57

68
task :default => :spec

0 commit comments

Comments
 (0)