Merge branch 'travis-build-fix'

This commit is contained in:
Thibault Jouan 2015-05-01 10:29:30 +00:00
commit e2c71bb964
3 changed files with 12 additions and 1 deletions

View File

@ -6,7 +6,15 @@ rvm:
- 2.0
- 2.1
- rbx-2
before_script:
- cp config/database.yml.travis config/database.yml
- bundle exec rake db:create db:migrate db:test:prepare
# GNU echo requires non-stardard option `-e' to interpret escapes sequences
- 'echo -e "test:\n secret_key_base: $(bundle exec rake secret)" > config/secrets.yml'
- mkdir -p data/sounds data/test/sounds
script: bundle exec rspec
matrix:
fast_finish: true
allow_failures:
- rvm: ruby-head
- rvm: rbx-2

View File

@ -0,0 +1,4 @@
test:
adapter: postgresql
database: travis_ci_test
username: postgres

View File

@ -11,7 +11,6 @@ Spork.prefork do
config.infer_spec_type_from_file_location!
config.mock_with :rspec
config.use_transactional_fixtures = true
Rails.configuration.sounds_path = "#{Rails.root}/tmp/spec/data/sounds"
config.after(:all) do
`rm -f #{Rails.configuration.sounds_path}/*`
end