Skip to content
Snippets Groups Projects
Commit b15e0cfb authored by kaiyou's avatar kaiyou
Browse files

Merge branch 'jae-ci-cd-optimisations' into 'main'

Optimisation du CI (caching)

See merge request !77
parents 864cb94d aefcb3cb
No related branches found
No related tags found
No related merge requests found
......@@ -4,22 +4,19 @@ stages:
test:
stage: test
image: python:3.10
image: docker.tedomum.net/acides/hiboo-testimage:main
variables:
FLASK_APP: hiboo
services:
- name: redis:alpine
alias: redis
cache:
- paths:
- .venv
before_script:
- apt-get update
- apt-get install -y --no-install-recommends python3-dev libxmlsec1 libxmlsec1-dev libpq-dev libmariadb-dev apache2-bin libapache2-mod-auth-mellon libapache2-mod-auth-openidc xmlsec1
- ln -s /usr/sbin/apache2 /usr/sbin/httpd
- ln -s /usr/lib/apache2 /usr/lib/httpd
- pip install poetry
- poetry config virtualenvs.in-project true
- poetry install --with=dev
script:
- poetry run playwright install-deps
- poetry run playwright install
- poetry run pytest --screenshot=on
artifacts:
paths:
......@@ -37,3 +34,4 @@ docker:
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_TAG
needs: ["test"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment