Guest User

Untitled

a guest
Nov 11th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. version: 2
  2. jobs:
  3. build:
  4. parallelism: 1
  5. working_directory: ~/yourapp
  6. environment:
  7. DATABASE_URL: postgis://postgres@localhost/yourapp_test
  8. docker:
  9. - image: circleci/ruby:2.4-node-browsers
  10. env:
  11. RAILS_ENV: test
  12. PGHOST: 127.0.0.1
  13. PGUSER: postgres
  14. - image: mdillon/postgis:9.6
  15. env:
  16. POSTGRES_USER: postgres
  17. POSTGRES_DB: yourapp_test
  18. POSTGRES_PASSWORD:
  19. steps:
  20. - checkout
  21. - restore_cache:
  22. key: yourapp-{{ checksum "Gemfile.lock" }}
  23. - run: bundle install --path vendor/bundle
  24. - save_cache:
  25. key: yourapp-{{ checksum "Gemfile.lock" }}
  26. paths:
  27. - vendor/bundle
  28. - run: dockerize -wait tcp://localhost:5432 -timeout 1m
  29. - run: sudo apt install postgresql-client
  30. - run: bin/rails db:structure:load --trace
  31. - run: bundle exec rake test
Add Comment
Please, Sign In to add comment