Merge branch 'travis-build-fix'
This commit is contained in:
		| @@ -6,7 +6,15 @@ rvm: | |||||||
|   - 2.0 |   - 2.0 | ||||||
|   - 2.1 |   - 2.1 | ||||||
|   - rbx-2 |   - 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: | matrix: | ||||||
|  |   fast_finish: true | ||||||
|   allow_failures: |   allow_failures: | ||||||
|     - rvm: ruby-head |     - rvm: ruby-head | ||||||
|     - rvm: rbx-2 |     - rvm: rbx-2 | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								config/database.yml.travis
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								config/database.yml.travis
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | |||||||
|  | test: | ||||||
|  |   adapter: postgresql | ||||||
|  |   database: travis_ci_test | ||||||
|  |   username: postgres | ||||||
| @@ -11,7 +11,6 @@ Spork.prefork do | |||||||
|     config.infer_spec_type_from_file_location! |     config.infer_spec_type_from_file_location! | ||||||
|     config.mock_with :rspec |     config.mock_with :rspec | ||||||
|     config.use_transactional_fixtures = true |     config.use_transactional_fixtures = true | ||||||
|     Rails.configuration.sounds_path = "#{Rails.root}/tmp/spec/data/sounds" |  | ||||||
|     config.after(:all) do |     config.after(:all) do | ||||||
|       `rm -f #{Rails.configuration.sounds_path}/*` |       `rm -f #{Rails.configuration.sounds_path}/*` | ||||||
|     end |     end | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user