machine:
  ruby:
    version:
      2.3.3
dependencies:
  bundler:
    without: [development, production]
test:
  pre:
    - "echo -e 'test:\\n  secret_token: abc123\\n  secret_key_base: 123abc' > config/secrets.yml"

machine:
  ruby:
    version:
      2.3.3
dependencies:
  bundler:
    without: [development, production]
database:
  override:
    - "echo -e 'test:\\n  adapter: mysql2\\n  database: circle_ruby_test\\n  host: localhost\\n  username: ubuntu\\n  encoding: utf8mb4\\n  collation: utf8mb4_unicode_ci' > config/database.yml"
    - bundle exec rake db:create db:schema:load
test:
  pre:
    - "echo -e 'test:\\n  secret_token: abc123\\n  secret_key_base: 123abc' > config/secrets.yml"

Fix encoding in database config for Circle
Fix encoding in database config for Circle
