Skip to content
This repository was archived by the owner on Sep 29, 2021. It is now read-only.

Commit 080e6b2

Browse files
authored
Merge pull request #4 from zgalor/add_travis
Add travis, code coverage, rubocop
2 parents 400ab21 + 0172454 commit 080e6b2

File tree

5 files changed

+44
-0
lines changed

5 files changed

+44
-0
lines changed

.codecov.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
codecov:
2+
branch: master
3+

.coveralls.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
service_name: travis-ci
2+

.rubocop.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
AllCops:
2+
Exclude:
3+
- lib/prometheus/api_client/version.rb
4+
5+
AlignHash:
6+
EnforcedHashRocketStyle: table
7+
8+
Style/TrailingCommaInArguments:
9+
EnforcedStyleForMultiline: comma
10+
11+
Style/TrailingCommaInLiteral:
12+
EnforcedStyleForMultiline: comma
13+
14+
Metrics/AbcSize:
15+
Max: 18
16+
17+
Metrics/MethodLength:
18+
Max: 23
19+
20+
Metrics/BlockLength:
21+
Exclude:
22+
- 'spec/**/*.rb'
23+
24+
Metrics/LineLength:
25+
Exclude:
26+
- 'spec/**/*.rb'
27+

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
sudo: false
2+
language: ruby
3+
# Needed for rainbow 2.2.1 / rubygems issues.
4+
before_install:
5+
- |
6+
if [[ "$(ruby -e 'puts RUBY_VERSION')" != 1.* ]]; then gem update --system; fi
7+
rvm:
8+
- 2.3.3
9+
- 2.4.0
10+

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ end
99
gem 'faraday'
1010

1111
group :test do
12+
gem 'coveralls'
1213
gem 'json', '< 2.0' if ruby_version?('< 2.0')
1314
gem 'rake'
1415
gem 'rspec'
16+
gem 'rubocop', '< 0.42'
1517
end

0 commit comments

Comments
 (0)