Created
December 18, 2018 03:29
-
-
Save jean182/54e03ff152cdbe11ef31449409087e6f to your computer and use it in GitHub Desktop.
Bitbucket Pipelines example
This file contains 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
image: starefossen/ruby-node:2-5 | |
pipelines: | |
branches: | |
master: | |
- step: | |
script: | |
- export HEROKU_APP_NAME=ci-conceptual | |
- chmod +x deploy-scripts/package_and_deploy.sh deploy-scripts/migrate.sh deploy-scripts/restart.sh | |
- deploy-scripts/package_and_deploy.sh | |
- deploy-scripts/migrate.sh | |
- deploy-scripts/restart.sh | |
staging: | |
- step: | |
script: | |
- export HEROKU_APP_NAME=ci-conceptual-staging | |
- chmod +x deploy-scripts/package_and_deploy.sh deploy-scripts/migrate.sh deploy-scripts/restart.sh | |
- deploy-scripts/package_and_deploy.sh | |
- deploy-scripts/migrate.sh | |
- deploy-scripts/restart.sh | |
develop: | |
- step: | |
script: | |
- export HEROKU_APP_NAME=ci-conceptual-development | |
- chmod +x deploy-scripts/package_and_deploy.sh deploy-scripts/migrate.sh deploy-scripts/restart.sh | |
- deploy-scripts/package_and_deploy.sh | |
- deploy-scripts/migrate.sh | |
- deploy-scripts/restart.sh | |
default: | |
- step: | |
script: | |
- export DATABASE_URL=postgresql://test_user:test_user_password@localhost/pipelines | |
- apt-get update | |
- gem update bundler | |
- bundle install | |
- bundle exec rake db:setup db:migrate --trace RAILS_ENV=test | |
- bundle exec rspec | |
- rubocop | |
services: | |
- postgres | |
definitions: | |
services: | |
postgres: | |
image: postgres | |
environment: | |
POSTGRES_DB: ci_conceptual_test | |
POSTGRES_USER: test_user | |
POSTGRES_PASSWORD: test_user_password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment