Skip to content

Instantly share code, notes, and snippets.

@divineforest
Last active August 8, 2023 05:52
Show Gist options
  • Save divineforest/15e3a17bb6572df56101 to your computer and use it in GitHub Desktop.
Save divineforest/15e3a17bb6572df56101 to your computer and use it in GitHub Desktop.
rvm:
- 2.1.3
env:
global:
- DATABASE_URL=postgres://postgres@localhost/app
matrix:
- BUILD_CMD='rspec'
- BUILD_CMD='rake assets:precompile RAILS_ENV=production'
- BUILD_CMD='rake db:setup RAILS_ENV=development'
before_script:
- bundle exec rake db:create db:migrate
script: eval bundle exec ${BUILD_CMD}
@divineforest
Copy link
Author

- BUILD_CMD='brakeman -z'

@divineforest
Copy link
Author

    - BUILD_CMD='rspec spec/api spec/bins spec/controllers spec/decorators spec/helpers'
    - BUILD_CMD='find spec/features -type f -name "[a-l]*spec.rb" -print | xargs bundle exec rspec --tag js'
    - BUILD_CMD='find spec/features -type f -name "[m-z]*spec.rb" -print | xargs bundle exec rspec --tag js'
    - BUILD_CMD='rspec --tag ~js spec/features'
    - BUILD_CMD='rspec spec/lib spec/mailers spec/services spec/stats spec/values spec/workers'
    - BUILD_CMD='rspec spec/models'
    - BUILD_CMD='rake assets:precompile app:error_pages:generate RAILS_ENV=production REDIS_URL=redis://localhost:6379'
    - BUILD_CMD='rake reset RAILS_ENV=development'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment