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 acides/hiboo!77
parents 864cb94d aefcb3cb
No related branches found
No related tags found
No related merge requests found
...@@ -4,22 +4,19 @@ stages: ...@@ -4,22 +4,19 @@ stages:
test: test:
stage: test stage: test
image: python:3.10 image: docker.tedomum.net/acides/hiboo-testimage:main
variables: variables:
FLASK_APP: hiboo FLASK_APP: hiboo
services: services:
- name: redis:alpine - name: redis:alpine
alias: redis alias: redis
cache:
- paths:
- .venv
before_script: before_script:
- apt-get update - poetry config virtualenvs.in-project true
- 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 install --with=dev - poetry install --with=dev
script: script:
- poetry run playwright install-deps
- poetry run playwright install
- poetry run pytest --screenshot=on - poetry run pytest --screenshot=on
artifacts: artifacts:
paths: paths:
...@@ -37,3 +34,4 @@ docker: ...@@ -37,3 +34,4 @@ docker:
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_TAG - 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