mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
22 lines
687 B
YAML
22 lines
687 B
YAML
language: ruby
|
|
cache: bundler
|
|
env:
|
|
- DB=postgresql
|
|
bundler_args: --without development staging production
|
|
before_script:
|
|
- "psql -c 'create database registry_test;' -U postgres"
|
|
- "psql -c 'create database registry_whois_test;' -U postgres"
|
|
- "psql -c 'create database registry_api_log_test;' -U postgres"
|
|
- "cp config/application-example.yml config/application.yml"
|
|
- "cp config/database-travis.yml config/database.yml"
|
|
- "RAILS_ENV=test bundle exec rake db:setup:all"
|
|
script:
|
|
- "RAILS_ENV=test bundle exec rspec"
|
|
- "bundle exec rake test"
|
|
after_success:
|
|
- "bundle exec codeclimate-test-reporter"
|
|
services:
|
|
- postgresql
|
|
addons:
|
|
postgresql: "9.4"
|
|
code_climate:
|