Skip to content

Commit

Permalink
Database settings for travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lgn21st committed Mar 6, 2014
1 parent 6291be1 commit 0172729
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .travis.database.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
test:
adapter: mysql2
database: peatio_test
username: root
encoding: utf8
cucumber:
adapter: mysql2
database: peatio_test
username: root
encoding: utf8
18 changes: 15 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
language: ruby
rvm:
- 2.1.0
before_install:
- sudo apt-get update
- sudo apt-get install -y libfontconfig libfontconfig-dev libfreetype6-dev
- sudo apt-get install -y qrencode libqrencode-dev
before_script:
- "mysql -e 'create database my_app_test;'"
- "cp ./.travis.database.yml ./config/database.yml"
script:
- bundle exec rake db:schema:load
- bundle exec rake db:test:prepare
- bundle exec rake spec
after_failure:
- "mysql -e 'show databases;'"
- "cat ./config/database.yml"
- "echo $RAILS_ENV"
- "bundle exec rake --version"
notifications:
webhooks: https://peatio.slack.com/services/hooks/travis?token=Rah5xOTiG33TryAfoV0peOKz
language: ruby
rvm:
- 2.1.0

0 comments on commit 0172729

Please sign in to comment.