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
Tags
No related merge requests found
Pipeline #24902 failed
test:
services:
- postgres:alpine
variables:
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
image: "python:3.7"
before_script:
- python --version
- pip install -r requirements.txt
- python manage.py test
staging:
type: deploy
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
stages:
- kehitystesti
production:
type: deploy
kokeilutesti:
stage: kehitystesti
script:
- apt-get update -qy
- 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
- python bayesian_adapted_gmm_for_background_extraction.py
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment