From b48fc5fb06f233af6e68f3dbf041b93ba233f23b Mon Sep 17 00:00:00 2001 From: Zeger-Jan van de Weg Date: Fri, 15 Apr 2016 21:22:52 +0200 Subject: Cleans up the build trace and speedup static tests --- .gitlab-ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1dc49ca336d..ab46803aebe 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,8 +22,7 @@ before_script: - cp config/gitlab.yml.example config/gitlab.yml - touch log/application.log - touch log/test.log - - retry bundle install --without postgres production --jobs $(nproc) "${FLAGS[@]}" - - RAILS_ENV=test bundle exec rake db:drop db:create db:schema:load db:migrate + - retry bundle install --without postgres production --jobs $(nproc) "${FLAGS[@]}" --quiet stages: - test @@ -32,55 +31,65 @@ stages: spec:feature: stage: test script: + - RAILS_ENV=test bundle exec rake db:drop db:create db:schema:load db:migrate - RAILS_ENV=test bundle exec rake assets:precompile 2>/dev/null - RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:feature spec:api: stage: test script: + - RAILS_ENV=test bundle exec rake db:drop db:create db:schema:load db:migrate - RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:api spec:models: stage: test script: + - RAILS_ENV=test bundle exec rake db:drop db:create db:schema:load db:migrate - RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:models spec:lib: stage: test script: + - RAILS_ENV=test bundle exec rake db:drop db:create db:schema:load db:migrate - RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:lib spec:services: stage: test script: + - RAILS_ENV=test bundle exec rake db:drop db:create db:schema:load db:migrate - RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:services spec:other: stage: test script: + - RAILS_ENV=test bundle exec rake db:drop db:create db:schema:load db:migrate - RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:other spinach:project:half: stage: test script: + - RAILS_ENV=test bundle exec rake db:drop db:create db:schema:load db:migrate - RAILS_ENV=test bundle exec rake assets:precompile 2>/dev/null - RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:project:half spinach:project:rest: stage: test script: + - RAILS_ENV=test bundle exec rake db:drop db:create db:schema:load db:migrate - RAILS_ENV=test bundle exec rake assets:precompile 2>/dev/null - RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:project:rest spinach:other: stage: test script: + - RAILS_ENV=test bundle exec rake db:drop db:create db:schema:load db:migrate - RAILS_ENV=test bundle exec rake assets:precompile 2>/dev/null - RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:other teaspoon: stage: test script: + - RAILS_ENV=test bundle exec rake db:drop db:create db:schema:load db:migrate - RAILS_ENV=test bundle exec teaspoon rubocop: -- cgit v1.2.1