Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. stages:
  2. - test
  3. - deploy
  4.  
  5. test:
  6. stage: test
  7. script:
  8. - 'export DATABASE_URL=postgres://postgres:@postgres:5432/python-test-app'
  9. - 'apt-get update -qy'
  10. - 'apt-get install -y python-dev python-pip'
  11. - 'pip install -r requirements.txt'
  12. - 'python manage.py test'
  13.  
  14. staging:
  15. stage: deploy
  16. script:
  17. - 'apt-get update -qy'
  18. - 'apt-get install -y ruby-dev'
  19. - 'gem install dpl'
  20. - 'dpl --provider=heroku --app=gitlab-ci-python-test-staging --api-key=$HEROKU_STAGING_API_KEY'
  21. only:
  22. - master
  23.  
  24. production:
  25. stage: deploy
  26. script:
  27. - 'apt-get update -qy'
  28. - 'apt-get install -y ruby-dev'
  29. - 'gem install dpl'
  30. - 'dpl --provider=heroku --app=gitlab-ci-python-test-prod --api-key=$HEROKU_PRODUCTION_API_KEY'
  31. only:
  32. - tags
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement