Project setup

Builds

Start by adding a file called "peak_flow.yml" at the root of your project

It should contain something like this:

before_script:
  - psql -c 'DROP DATABASE IF EXISTS "peakflow_test";' -U postgres
  - psql -c 'CREATE DATABASE "peakflow_test";' -U postgres
  - cp config/database.peak_flow.yml config/database.yml
  - RAILS_ENV=test bundle exec rake db:schema:load RAILS_ENV=test
script:
  - bundle exec rspec
  - bundle exec rubocop

If you want to use PostgreSQL, the configuration should look something like this:

test:
  adapter: postgresql
  database: peakflow_test
  username: postgres

You should also be sure to edit the project on the website and choose if you are using Redis, or other services, that should be started for you.