mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Merge remote-tracking branch 'off/travis-parallel' into i18n-replace-strings-in-js
This commit is contained in:
20
.travis.yml
20
.travis.yml
@@ -2,14 +2,24 @@ language: ruby
|
||||
bundler_args: --without development
|
||||
rvm:
|
||||
- "1.9.3"
|
||||
services: postgresql
|
||||
before_install:
|
||||
|
||||
# The test cases are roughly split according to their test times.
|
||||
# It would be better to use https://github.com/ArturT/knapsack.
|
||||
env:
|
||||
- TEST_CASES="./spec/models"
|
||||
- TEST_CASES="./spec/controllers ./spec/views"
|
||||
- TEST_CASES="./spec/requests ./spec/helpers ./spec/mailers"
|
||||
- TEST_CASES="./spec/features/admin"
|
||||
- TEST_CASES="./spec/features/consumer"
|
||||
#- TEST_CASES="./spec/routing"
|
||||
|
||||
before_script:
|
||||
- cp config/database.travis.yml config/database.yml
|
||||
- psql -c 'create database open_food_network_test;' -U postgres
|
||||
- cp config/application.yml.example config/application.yml
|
||||
- RAILS_ENV=test bundle exec rake db:create db:schema:load
|
||||
|
||||
script:
|
||||
- RAILS_ENV=test bundle exec rake db:migrate --trace
|
||||
- bundle exec rake spec
|
||||
- "bundle exec rspec $TEST_CASES"
|
||||
|
||||
notifications:
|
||||
email: false
|
||||
|
||||
Reference in New Issue
Block a user