Split rspec and spinach tests in parallel

This commit is contained in:
Dmitriy Zaporozhets 2015-06-23 16:43:24 +02:00
parent 94f130cbfc
commit b5e7096cbf
1 changed files with 29 additions and 7 deletions

View File

@ -9,35 +9,57 @@ before_script:
- touch log/test.log
- bundle install --without postgres production --jobs $(nproc) "${FLAGS[@]}"
- bundle exec rake db:create RAILS_ENV=test
Rspec:
spec:feature:
script:
- RAILS_ENV=test SIMPLECOV=true bundle exec rake spec
- RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:feature
tags:
- ruby
- mysql
Spinach:
spec:api:
script:
- RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach
- RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:api
tags:
- ruby
- mysql
Jasmine:
spec:other:
script:
- RAILS_ENV=test SIMPLECOV=true bundle exec rake spec:other
tags:
- ruby
- mysql
spinach:project:
script:
- RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:project
tags:
- ruby
- mysql
spinach:other:
script:
- RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:other
tags:
- ruby
- mysql
jasmine:ci:
script:
- RAILS_ENV=test SIMPLECOV=true bundle exec rake jasmine:ci
tags:
- ruby
- mysql
Rubocop:
rubocop:
script:
- bundle exec rubocop
tags:
- ruby
- mysql
Brakeman:
brakeman:
script:
- bundle exec rake brakeman
tags: