mirror of
https://github.com/internetee/registry.git
synced 2025-05-20 11:19:39 +02:00
parent
2092767f54
commit
b687144f06
2 changed files with 14 additions and 23 deletions
35
.travis.yml
35
.travis.yml
|
@ -1,35 +1,26 @@
|
||||||
language: ruby
|
language: ruby
|
||||||
rvm:
|
|
||||||
- 2.2
|
|
||||||
env:
|
env:
|
||||||
- DB=postgresql
|
- DB=postgresql
|
||||||
sudo: false
|
bundler_args: --without development production
|
||||||
before_install:
|
|
||||||
- gem install bundler
|
|
||||||
- "rm ${BUNDLE_GEMFILE}.lock"
|
|
||||||
before_script:
|
before_script:
|
||||||
- psql -c 'create database registry_test;' -U postgres
|
- "psql -c 'create database registry_test;' -U postgres"
|
||||||
- psql -c 'create database registry_whois_test;' -U postgres
|
- "psql -c 'create database registry_whois_test;' -U postgres"
|
||||||
- psql -c 'create database registry_api_log_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/application-example.yml config/application.yml
|
- "cp config/secrets-example.yml config/secrets.yml"
|
||||||
- cp config/secrets-example.yml config/secrets.yml
|
- "cp config/database-travis.yml config/database.yml"
|
||||||
- cp config/database-travis.yml config/database.yml
|
- "RAILS_ENV=test bundle exec rake db:all:create"
|
||||||
- RAILS_ENV=test bundle exec rake db:all:drop
|
- "RAILS_ENV=test bundle exec rake db:all:schema:load"
|
||||||
- RAILS_ENV=test bundle exec rake db:all:setup
|
- "RAILS_ENV=test bundle exec rake db:migrate"
|
||||||
script:
|
script:
|
||||||
- RAILS_ENV=test bundle exec rake
|
- "RAILS_ENV=test bundle exec rspec"
|
||||||
cache: bundler
|
|
||||||
services:
|
services:
|
||||||
- postgresql
|
- postgresql
|
||||||
addons:
|
addons:
|
||||||
postgresql: "9.3"
|
postgresql: "9.4"
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
- priit@gitlab.eu
|
- developers@tld.ee
|
||||||
- martin@gitlab.eu
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
|
||||||
- alpha
|
|
||||||
- staging
|
- staging
|
||||||
|
|
|
@ -4,7 +4,7 @@ default: &default
|
||||||
encoding: unicode
|
encoding: unicode
|
||||||
pool: 5
|
pool: 5
|
||||||
username: postgres
|
username: postgres
|
||||||
password:
|
password:
|
||||||
|
|
||||||
test:
|
test:
|
||||||
<<: *default
|
<<: *default
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue