Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1543 from zz9pzza/issue_3926
Minimal files need to get tests to run under codeship
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |