-
-
Save AstmDesign/64ece43a4274720937d003b80a39ff9a to your computer and use it in GitHub Desktop.
To run rails with bitbucket pipeline CI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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