2016-09-10 16:17:45 +08:00
|
|
|
language: ruby
|
2016-09-11 00:59:56 +08:00
|
|
|
|
2016-09-10 16:36:59 +08:00
|
|
|
rvm:
|
|
|
|
- 2.2
|
2016-09-11 00:59:56 +08:00
|
|
|
|
2016-09-11 01:05:07 +08:00
|
|
|
env:
|
|
|
|
- DB=pgsql
|
|
|
|
|
2016-09-11 00:59:56 +08:00
|
|
|
services:
|
|
|
|
- postgresql
|
|
|
|
|
2016-09-10 16:17:45 +08:00
|
|
|
script:
|
|
|
|
- RAILS_ENV=test bundle exec rake db:migrate --trace
|
|
|
|
- bundle exec rake db:test:prepare
|
2016-09-11 00:59:56 +08:00
|
|
|
- bundle exec rake
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- cp config/database.yml.travis config/database.yml
|
|
|
|
- psql -c 'create database courseselect_test;' -U postgres
|