mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 07:52:04 +02:00
35 lines
856 B
YAML
35 lines
856 B
YAML
language: ruby
|
|
rvm:
|
|
- 2.2
|
|
env:
|
|
- DB=postgresql
|
|
sudo: false
|
|
before_install:
|
|
- gem install bundler
|
|
- "rm ${BUNDLE_GEMFILE}.lock"
|
|
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
|
|
- bundle update
|
|
- cp config/application-example.yml config/application.yml
|
|
- cp config/secrets-example.yml config/secrets.yml
|
|
- cp config/database-travis.yml config/database.yml
|
|
- RAILS_ENV=test bundle exec rake db:all:drop
|
|
- RAILS_ENV=test bundle exec rake db:all:setup
|
|
script:
|
|
- RAILS_ENV=test bundle exec rake
|
|
cache: bundler
|
|
services:
|
|
- postgresql
|
|
addons:
|
|
postgresql: "9.3"
|
|
notifications:
|
|
email:
|
|
- priit@gitlab.eu
|
|
- martin@gitlab.eu
|
|
branches:
|
|
only:
|
|
- master
|
|
- alpha
|
|
- staging
|