Skip to content
Snippets Groups Projects
Commit e8a49f9b authored by Sabine Schröder's avatar Sabine Schröder
Browse files

Update .gitlab-ci.yml file (tests will fail because of missing update_badge.sh)

parent bc3afce7
Branches
No related tags found
No related merge requests found
Pipeline #244837 failed
......@@ -17,7 +17,7 @@ cache:
paths:
- public/docs/
#### Test ####
#### Tests ####
test:
stage: test
services:
......@@ -27,6 +27,9 @@ test:
- public-docker
variables:
FAILURE_THRESHOLD: 85
before_script:
- chmod +x ./CI/update_badge.sh
- ./CI/update_badge.sh > /dev/null
script:
- apt-get update && apt-get install -y postgresql-client
- pip install --upgrade pip
......@@ -34,6 +37,43 @@ test:
- psql -h postgres -U $POSTGRES_USER -d $POSTGRES_DB -f tests/fixtures/toardb_pytest.psql
- chmod +x ./CI/do_pytest.sh
- ./CI/do_pytest.sh
after_script:
- ./CI/update_badge.sh > /dev/null
artifacts:
name: pages
when: always
paths:
- badges/
coverage:
stage: test
services:
- name: postgis/postgis
alias: postgres
tags:
- public-docker
variables:
FAILURE_THRESHOLD: 50
COVERAGE_PASS_THRESHOLD: 45
before_script:
- chmod +x ./CI/update_badge.sh
- ./CI/update_badge.sh > /dev/null
script:
- apt-get update && apt-get install -y postgresql-client
- pip install --upgrade pip
- pip install coverage
- pip install --no-cache-dir -r requirements.txt
- psql -h postgres -U $POSTGRES_USER -d $POSTGRES_DB -f tests/fixtures/toardb_pytest.psql
- chmod +x ./CI/do_pytest_coverage.sh
- ./CI/do_pytest_coverage.sh
after_script:
- ./CI/update_badge.sh > /dev/null
artifacts:
name: pages
when: always
paths:
- badges/
- coverage/
#### Documentation ####
docs:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment