Skip to content

Instantly share code, notes, and snippets.

@isseu
Created December 13, 2016 17:11
Show Gist options
  • Save isseu/ccf345e51d96e2a2526f52d3a438f888 to your computer and use it in GitHub Desktop.
Save isseu/ccf345e51d96e2a2526f52d3a438f888 to your computer and use it in GitHub Desktop.
To run rails with bitbucket pipeline CI
# This is a sample build configuration for Ruby.
# Check our guides at https://confluence.atlassian.com/x/VYk8Lw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: ruby:2.2.4
clone:
depth: 3
pipelines:
branches:
master:
- step:
script: # Modify the commands below to build your repository.
- apt-get update
- apt-get install -y build-essential libpq-dev nodejs
- bundle install
- bundle exec rake db:migrate RAILS_ENV=test
- bundle exec rspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment