Skip to content

Instantly share code, notes, and snippets.

@akirill0v
Created November 2, 2015 16:12
Show Gist options
  • Save akirill0v/42860ef7a498b8e0dbdb to your computer and use it in GitHub Desktop.
Save akirill0v/42860ef7a498b8e0dbdb to your computer and use it in GitHub Desktop.
artifacts:
- migration.log.txt
- prefix: "$CI_JOB_ID."
before_script:
- cp config/database.yml.ci config/database.yml
- sudo -u postgres psql -c 'create database test_db'
- RAILS_ENV=test bundle exec rake db:migrate > migration.log.txt
script: bundle exec ${BUILD_CMD}
deploy:
shell: bundle exec cap staging deploy
branch: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment