Skip to content
Snippets Groups Projects
Commit 1eb4ad82 authored by Petteri Laitinen's avatar Petteri Laitinen
Browse files

Merge branch 'master' into 'Branch1'

# Conflicts:
#   .gitlab-ci.yml
parents d6992a38 b9ebd11e
No related branches found
No related tags found
1 merge request!1Branch1
Pipeline #24905 failed
stages: image: "python:3.7"
- test
- deploy
test: before_script:
stage: test - python --version
script:
# this configures Django application to use attached postgres database that is run on `postgres` host
- 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 - pip install -r requirements.txt
- python manage.py test
staging: stages:
stage: deploy - kehitystesti
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: kokeilutesti:
stage: deploy stage: kehitystesti
script: script:
- apt-get update -qy - python bayesian_adapted_gmm_for_background_extraction.py
- apt-get install -y ruby-dev \ No newline at end of file
- gem install dpl
- dpl --provider=heroku --app=gitlab-ci-python-test-prod --api-key=$HEROKU_PRODUCTION_API_KEY
only:
- tags
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment