Advertisement
Guest User

Untitled

a guest
Oct 13th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. version: 2
  2. jobs:
  3. build:
  4. docker:
  5. - image: circleci/python:3.6.2-stretch-browsers
  6. environment:
  7. FLASK_CONFIG: testing
  8. TEST_DATABASE_URL: postgresql://ubuntu@localhost/circle_test?sslmode=disable
  9. - image: circleci/postgres:9.6.5-alpine-ram
  10. environment:
  11. POSTGRES_USER: ubuntu
  12. POSTGRES_DB: circle_test
  13. POSTGRES_PASSWORD: ""
  14. steps:
  15. - checkout
  16. - restore_cache:
  17. key: deps1-{{ .Branch }}-{{ checksum "requirements/dev.txt" }}
  18. - run:
  19. name: Install Python deps in a venv
  20. command: |
  21. python3 -m venv venv
  22. . venv/bin/activate
  23. pip install -r requirements/dev.txt
  24. - save_cache:
  25. key: deps1-{{ .Branch }}-{{ checksum "requirements/dev.txt" }}
  26. paths:
  27. - "venv"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement