Commit 0a95a6d1 authored by schmidni's avatar schmidni
Browse files

Update .gitlab-ci.yml file

parent b8f5c2b9
Pipeline #2278 failed with stages
in 28 seconds
......@@ -23,13 +23,6 @@ stages:
- chmod 700 ~/.ssh
- ssh-keyscan -t rsa gitlab.seismo.ethz.ch >> ~/.ssh/known_hosts
.add-env: &add-env
- echo POSTGRES_DB=$POSTGRES_DB >> .env
- echo POSTGRES_PASSWORD=$POSTGRES_PASSWORD >> .env
- echo POSTGRES_PORT=$POSTGRES_PORT >> .env
- echo POSTGRES_SERVER=$POSTGRES_SERVER >> .env
- echo POSTGRES_USER=$POSTGRES_USER >> .env
flake8-job:
stage: codestyle
extends: .test-rules
......@@ -41,9 +34,18 @@ flake8-job:
py38-test-job:
stage: test
environment: testing
extends: .test-rules
needs: ["flake8-job"]
image: python:3.8
variables:
POSTGRES_DB: $POSTGRES_DB
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
PGPORT: $POSTGRES_PORT
POSTGRES_HOST_AUTH_METHOD: trust
services:
- postgresql:14.2
before_script:
- *add-ssh
- cp $DOTENV .env
......@@ -51,7 +53,6 @@ py38-test-job:
- 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