Commit 08ceb761 authored by schmidni's avatar schmidni
Browse files

Update .gitlab-ci.yml file

parent 27cc4a7f
Pipeline #2276 failed with stages
in 2 minutes and 18 seconds
......@@ -23,9 +23,6 @@ stages:
- chmod 700 ~/.ssh
- ssh-keyscan -t rsa gitlab.seismo.ethz.ch >> ~/.ssh/known_hosts
- apt-get update
- apt-get install -y python3-dev build-essential
.add-env: &add-env
- echo POSTGRES_DB=$POSTGRES_DB >> .env
- echo POSTGRES_PASSWORD=$POSTGRES_PASSWORD >> .env
......@@ -44,20 +41,23 @@ flake8-job:
py38-test-job:
stage: test
extends: .test-rules
needs: ["flake8-job"]
image: python:3.8
variables:
POSTGRES_DB: $POSTGRES_DB
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_PORT: $POSTGRES_PORT
POSTGRES_SERVER: $POSTGRES_SERVER
POSTGRES_USER: $POSTGRES_USER
extends: .test-rules
needs: ["flake8-job"]
image: python:3.8
before_script:
- *add-ssh
# - *add-env
- apt-get update
- apt-get install -y python3-dev build-essential
- pip install tox
script:
- export
- tox -e py38-tests
artifacts:
reports:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment