Update travis config

#203
This commit is contained in:
Artur Beljajev 2016-10-19 18:21:50 +03:00
parent 2092767f54
commit b687144f06
2 changed files with 14 additions and 23 deletions

View file

@ -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