Advertisement
OlegKl

Untitled

Nov 26th, 2018
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. image: python:3.6.1
  2.  
  3. services:
  4. - postgres:9.3
  5.  
  6. variables:
  7. POSTGRES_DB: project_ci_test
  8. POSTGRES_USER: postgres
  9. POSTGRES_PASSWORD: ""
  10.  
  11. test:
  12. script:
  13. - export DATABASE_URL=postgres://postgres:@postgres:5432/project_ci_test
  14. - apt-get update -qy
  15. - apt-get install -y python-dev python-pip
  16. - pip install -r requirements.txt
  17. - python manage.py makemigrations
  18. - python manage.py migrate
  19. - python manage.py test Project
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement