language: ruby
rvm:
  - 2.1.5
bundler_args: --without development production
script:
  - RAILS_ENV=test bundle exec rake --trace db:migrate
  - rspec
before_script:
  - "echo -e 'test:\\n  adapter: mysql2\\n  database: onebody_test\\n  username: travis\\n  encoding: utf8' > config/database.yml && echo -e 'test:\\n  secret_token: abc123\\n  secret_key_base: 123abc' > config/secrets.yml"
  - mysql -e 'create database onebody_test'
notifications:
  irc: "chat.freenode.net#church.io"

language: ruby
rvm:
  - 2.1.5
bundler_args: --without development production
sudo: false
script:
  - RAILS_ENV=test bundle exec rake --trace db:migrate
  - rspec
before_script:
  - "echo -e 'test:\\n  adapter: mysql2\\n  database: onebody_test\\n  username: travis\\n  encoding: utf8' > config/database.yml && echo -e 'test:\\n  secret_token: abc123\\n  secret_key_base: 123abc' > config/secrets.yml"
  - mysql -e 'create database onebody_test'
notifications:
  irc: "chat.freenode.net#church.io"

Set sudo=false so Travis builds faster
Set sudo=false so Travis builds faster
