This repository was archived by the owner on May 14, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +14
-1
lines changed
Expand file tree Collapse file tree 4 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ pipeline {
4040 sh(" docker run --rm -e COVERAGE=requests -i smartbox/cell:${ GIT_COMMIT} bundle exec rspec spec/requests" )
4141 }
4242 }
43+ stage(" Library specs" ) {
44+ steps {
45+ sh(" docker run --rm -e COVERAGE=lib -i smartbox/cell:${ GIT_COMMIT} bundle exec rspec spec/lib" )
46+ }
47+ }
4348 stage(" All specs" ) {
4449 steps {
4550 sh(" docker run --rm -i smartbox/cell:${ GIT_COMMIT} bundle exec rspec" )
Original file line number Diff line number Diff line change 11SPEC ?= spec
22
3- .PHONY : all build spec brakeman
3+ .PHONY : all build spec models requests lib rubocop brakeman update
44
55all : build spec brakeman
66
@@ -22,6 +22,9 @@ models:
2222requests :
2323 docker run --rm -e COVERAGE=requests -v ` pwd` :/cell -it cell:latest bundle exec rspec spec/requests
2424
25+ lib :
26+ docker run --rm -e COVERAGE=lib -v ` pwd` :/cell -it cell:latest bundle exec rspec spec/lib
27+
2528rubocop :
2629 docker run --rm -v ` pwd` :/cell -it cell:latest bundle exec rubocop -D
2730
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ def matches?(source_file)
77 source_file . filename !~ /app\/ models/
88 when :requests
99 source_file . filename !~ /app\/ controllers/
10+ when :lib
11+ source_file . filename !~ /app\/ lib/
1012 end
1113 end
1214end
@@ -19,6 +21,9 @@ def matches?(source_file)
1921 when "requests"
2022 add_filter SubsetFilesFilter . new ( :requests )
2123 coverage_dir "coverage-requests"
24+ when "lib"
25+ add_filter SubsetFilesFilter . new ( :lib )
26+ coverage_dir "coverage-lib"
2227 end
2328end
2429
You can’t perform that action at this time.
0 commit comments