Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stages:
- - test
- - deploy
- test:
- stage: test
- script:
- - 'export DATABASE_URL=postgres://postgres:@postgres:5432/python-test-app'
- - 'apt-get update -qy'
- - 'apt-get install -y python-dev python-pip'
- - 'pip install -r requirements.txt'
- - 'python manage.py test'
- staging:
- stage: deploy
- script:
- - 'apt-get update -qy'
- - 'apt-get install -y ruby-dev'
- - 'gem install dpl'
- - 'dpl --provider=heroku --app=gitlab-ci-python-test-staging --api-key=$HEROKU_STAGING_API_KEY'
- only:
- - master
- production:
- stage: deploy
- script:
- - 'apt-get update -qy'
- - 'apt-get install -y ruby-dev'
- - 'gem install dpl'
- - 'dpl --provider=heroku --app=gitlab-ci-python-test-prod --api-key=$HEROKU_PRODUCTION_API_KEY'
- only:
- - tags
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement