Skip to content

Commit 332f91e

Browse files
author
stevenallen05
authored
Merge pull request tractionguest#23 from tractionguest/pipelines
Initial pipeline setup
2 parents e590c5c + d5e04f5 commit 332f91e

File tree

5 files changed

+47
-1
lines changed

5 files changed

+47
-1
lines changed

.circleci/config.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: 2.1
2+
orbs:
3+
ruby: circleci/ruby@0.1.2
4+
5+
jobs:
6+
build:
7+
docker:
8+
- image: circleci/ruby:2.6.3
9+
steps:
10+
- checkout
11+
- ruby/bundle-install
12+
- run:
13+
name: Setup dummy app
14+
command: cd spec/dummy && bin/setup
15+
- run:
16+
name: Setup Code Climate test-reporter
17+
command: |
18+
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
19+
chmod +x ./cc-test-reporter
20+
- run:
21+
name: Test report
22+
command: ./cc-test-reporter before-build
23+
- run:
24+
name: Run tests
25+
command: bundle exec rspec
26+
- run:
27+
name: Test report
28+
command: |
29+
./cc-test-reporter after-build

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ spec/dummy/db/*.sqlite3
55
spec/dummy/db/*.sqlite3-journal
66
spec/dummy/log/*.log
77
spec/dummy/tmp/
8-
.byebug_history
8+
.byebug_history
9+
coverage/*

Gemfile.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ GEM
5757
concurrent-ruby (1.1.6)
5858
crass (1.0.6)
5959
diff-lcs (1.4.1)
60+
docile (1.3.2)
6061
erubi (1.9.0)
6162
factory_bot (6.0.2)
6263
activesupport (>= 5.0.0)
@@ -70,6 +71,7 @@ GEM
7071
i18n (1.8.4)
7172
concurrent-ruby (~> 1.0)
7273
interception (0.5)
74+
json (2.4.0)
7375
jwt (2.2.1)
7476
loofah (2.6.0)
7577
crass (~> 1.0.2)
@@ -137,6 +139,12 @@ GEM
137139
rspec-mocks (~> 3.9.0)
138140
rspec-support (~> 3.9.0)
139141
rspec-support (3.9.3)
142+
simplecov (0.17.1)
143+
docile (~> 1.1)
144+
json (>= 1.8, < 3)
145+
simplecov-html (~> 0.10.0)
146+
simplecov-html (0.10.2)
147+
simplecov_json_formatter (0.1.2)
140148
sprockets (4.0.2)
141149
concurrent-ruby (~> 1.0)
142150
rack (> 1, < 3)
@@ -167,6 +175,8 @@ DEPENDENCIES
167175
rake (~> 13.0)
168176
rspec-rails (~> 3.0)
169177
scim_rails!
178+
simplecov (< 0.18.0)
179+
simplecov_json_formatter
170180
sqlite3 (~> 1.3.6)
171181

172182
RUBY VERSION

scim_rails.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@ Gem::Specification.new do |s|
3131
s.add_development_dependency "byebug"
3232
s.add_development_dependency "awesome_print"
3333
s.add_development_dependency "sqlite3", "~> 1.3.6"
34+
s.add_development_dependency "simplecov", "< 0.18.0"
35+
s.add_development_dependency "simplecov_json_formatter"
3436
end

spec/spec_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
require 'byebug'
77
require 'awesome_print'
88
require 'faker'
9+
require 'simplecov'
10+
require 'simplecov_json_formatter'
11+
12+
SimpleCov.start
913

1014
Rails.backtrace_cleaner.remove_silencers!
1115

0 commit comments

Comments
 (0)