Speed-up CI with pre-built image, add resources directory

This commit is contained in:
fnux 2020-05-08 12:15:40 +02:00
parent 67af7b5465
commit df059fb00d
4 changed files with 4 additions and 3 deletions

View file

@ -4,7 +4,7 @@ stages:
run-tests:
stage: test
image: fedora:latest
image: code.ungleich.ch:5050/uncloud/uncloud/uncloud-ci:latest
services:
- postgres:latest
variables:
@ -12,8 +12,6 @@ run-tests:
DATABASE_USER: postgres
POSTGRES_HOST_AUTH_METHOD: trust
coverage: /^TOTAL.+?(\d+\%)$/
before_script:
- dnf install -y python3-devel python3-pip python3-coverage libpq-devel openldap-devel gcc chromium
script:
- pip install -r requirements.txt
- coverage run --source='.' ./manage.py test

0
resources/ci/.lock Normal file
View file

3
resources/ci/Dockerfile Normal file
View file

@ -0,0 +1,3 @@
FROM fedora:latest
RUN dnf install -y python3-devel python3-pip python3-coverage libpq-devel openldap-devel gcc chromium