Skip to content
Snippets Groups Projects
Commit b48fc5fb authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg
Browse files

Cleans up the build trace and speedup static tests

parent 492019a2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
@@ -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:
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment