summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-09 10:51:01 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-09 10:51:01 +0100
commitae0b9017315b38dd42b4a1c9b6fb1daa78fee28a (patch)
tree9e6bbb38d25c1eadad154740ecd54d2def33ff5f
parent1e8d703a854b372b12a2ad41b5e54d2abc028f74 (diff)
downloadgitlab-ce-ae0b9017315b38dd42b4a1c9b6fb1daa78fee28a.tar.gz
Split up specs more
-rw-r--r--.gitlab-ci.yml9
-rw-r--r--lib/tasks/spec.rake11
2 files changed, 18 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 527ccb08ab7..943e40d5303 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -24,6 +24,13 @@ spec:api:
- ruby
- mysql
+spec:models:
+ script:
+ - RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:models
+ tags:
+ - ruby
+ - mysql
+
spec:benchmark:
script:
- RAILS_ENV=test bundle exec rake spec:benchmark
@@ -96,7 +103,7 @@ flay:
- mysql
bundler:audit:
- script:
+ script:
- "bundle exec bundle-audit update"
- "bundle exec bundle-audit check"
tags:
diff --git a/lib/tasks/spec.rake b/lib/tasks/spec.rake
index 365ff2defd4..049e17e6c11 100644
--- a/lib/tasks/spec.rake
+++ b/lib/tasks/spec.rake
@@ -19,6 +19,15 @@ namespace :spec do
run_commands(cmds)
end
+ desc 'GitLab | Rspec | Run model specs'
+ task :models do
+ cmds = [
+ %W(rake gitlab:setup),
+ %W(rspec spec --tag @models)
+ ]
+ run_commands(cmds)
+ end
+
desc 'GitLab | Rspec | Run benchmark specs'
task :benchmark do
cmds = [
@@ -32,7 +41,7 @@ namespace :spec do
task :other do
cmds = [
%W(rake gitlab:setup),
- %W(rspec spec --tag ~@api --tag ~@feature --tag ~@benchmark)
+ %W(rspec spec --tag ~@api,~@feature,~@models,~@benchmark)
]
run_commands(cmds)
end