Skip to content

Commit

Permalink
Merge pull request #1543 from zz9pzza/issue_3926
Browse files Browse the repository at this point in the history
Minimal files need to get tests to run under codeship
  • Loading branch information
elzj committed Feb 25, 2014
2 parents 37549dc + ce8451b commit 6f81bf9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
18 changes: 18 additions & 0 deletions config/database.codeship.yml
@@ -0,0 +1,18 @@
development:
adapter: mysql2
host: localhost
encoding: utf8
pool: 10
username: <%= ENV['MYSQL_USER'] %>
password: <%= ENV['MYSQL_PASSWORD'] %>
database: development<%= ENV['TEST_ENV_NUMBER'] %>
socket: /var/run/mysqld/mysqld.sock
test:
adapter: mysql2
host: localhost
encoding: utf8
pool: 10
username: <%= ENV['MYSQL_USER'] %>
password: <%= ENV['MYSQL_PASSWORD'] %>
database: test<%= ENV['TEST_ENV_NUMBER'] %>
socket: /var/run/mysqld/mysqld.sock
9 changes: 9 additions & 0 deletions script/prepare_codeship.sh
@@ -0,0 +1,9 @@
#!/bin/sh
cp config/database.codeship.yml config/database.yml
cp config/newrelic.example config/newrelic.yml
cp config/redis-cucumber.conf.example config/redis-cucumber.conf
cp config/redis.travis.example config/redis.yml
bundle exec rake db:create:all --trace
mysql -u $MYSQL_USER -p$MYSQL_PASSWORD -e "ALTER DATABASE test$TEST_ENV_NUMBER CHARACTER SET utf8 COLLATE utf8_general_ci;"
bundle exec rake db:schema:load --trace
bundle exec rake db:migrate --trace

0 comments on commit 6f81bf9

Please sign in to comment.