Skip to content
Extraits de code Groupes Projets
Valider 1186cbbd rédigé par Bastien Le Querrec's avatar Bastien Le Querrec
Parcourir les fichiers

ci: utilise le dernier artifact comme cache

parent c128e73e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -19,16 +19,19 @@ install: ...@@ -19,16 +19,19 @@ install:
cache: cache:
key: $CI_COMMIT_REF_SLUG key: $CI_COMMIT_REF_SLUG
paths: paths:
- bin/ - bin/
- lib/ - lib/
- pyvenv.cfg - pyvenv.cfg
test_ppparis: test_ppparis:
stage: test stage: test
needs: [install] needs: [install]
before_script: before_script:
- apt-get update && apt-get install --no-install-recommends -y python3 python3-virtualenv chromium-driver make xauth xvfb tesseract-ocr tesseract-ocr-eng tesseract-ocr-fra ocrmypdf - apt-get update && apt-get install --no-install-recommends -y python3 python3-virtualenv chromium-driver make xauth xvfb tesseract-ocr tesseract-ocr-eng tesseract-ocr-fra ocrmypdf curl unzip
- ln -s /usr/bin/python3 /usr/bin/python - ln -s /usr/bin/python3 /usr/bin/python
- curl --location --output artifacts.zip "${CI_SERVER_PROTOCOL}://${CI_SERVER_HOST}:${CI_SERVER_PORT}/api/v4/projects/${CI_PROJECT_ID}/jobs/artifacts/${CI_COMMIT_BRANCH}/download?job=${CI_JOB_NAME}&job_token=${CI_JOB_TOKEN}" || true
- unzip artifacts.zip data/ppparis/* || true
- rm artifacts.zip || true
script: script:
- source bin/activate - source bin/activate
- python ./ppparis.py - python ./ppparis.py
...@@ -37,7 +40,9 @@ test_ppparis: ...@@ -37,7 +40,9 @@ test_ppparis:
cache: cache:
key: $CI_COMMIT_REF_SLUG key: $CI_COMMIT_REF_SLUG
paths: paths:
- data/ppparis/ - bin/
- lib/
- pyvenv.cfg
artifacts: artifacts:
paths: paths:
- data/ppparis/ - data/ppparis/
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter