Skip to content

Instantly share code, notes, and snippets.

@nas887
Created December 2, 2016 23:25
Show Gist options
  • Save nas887/0ba4ba10a9faa63310bb56266c00632d to your computer and use it in GitHub Desktop.
Save nas887/0ba4ba10a9faa63310bb56266c00632d to your computer and use it in GitHub Desktop.
circle-ci octopus friendly config
machine:
node:
version: 6
timezone:
'America/Los_Angeles'
environment:
WHITELIST: false
WHITELIST_IPS: ''
RSPEC_FORMAT: 'RspecJunitFormatter'
RSPEC_OUT: '$CIRCLE_TEST_REPORTS/rspec/junit.xml'
database:
override:
- mv config/database.yml.ci config/database.yml
- psql -c 'create database my_app_test;' -U ubuntu
- RAILS_ENV=test bundle exec rake db:schema:load
- RAILS_ENV=test bundle exec rake db:migrate --trace
test:
override:
- bundle exec bundle-audit
- bundle exec rspec:
parallel: true
files:
- spec/**/*_spec.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment