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

Update .gitlab-ci.yml

parent ea442ea6
Branches
No related tags found
No related merge requests found
Pipeline #24902 failed
test: image: "python:3.7"
services:
- postgres:alpine before_script:
variables: - python --version
POSTGRES_DB: custom_db
POSTGRES_USER: custom_user
POSTGRES_PASSWORD: custom_pass
script:
- export DATABASE_URL=postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres:5432/$POSTGRES_DB
- 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:
type: deploy - kehitystesti
script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
- dpl --provider=heroku --app=$HEROKU_STAGING_APP --api-key=$HEROKU_STAGING_API_KEY --skip-cleanup
only:
- master
production: kokeilutesti:
type: deploy stage: kehitystesti
script: script:
- apt-get update -qy - python bayesian_adapted_gmm_for_background_extraction.py
- apt-get install -y ruby-dev
- gem install dpl
- dpl --provider=heroku --app=$HEROKU_PRODUCTION_APP --api-key=$HEROKU_PRODUCTION_API_KEY --skip-cleanup
only:
- tags
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment