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

ci: ajout de pref13

parent 544367a4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -63,3 +63,29 @@ test_ppparis:
- data/ppparis/*.txt
- output.log
expire_in: 12 hours
test_pref13:
stage: test
image: ${IMAGE_NAME}:latest
needs: [install]
script:
- curl --silent --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 -q artifacts.zip data/pref13/* || true
- rm artifacts.zip || true
- source bin/activate
- /etc/init.d/tor start
- python ./pref13.py
retry: 2
only:
- main
cache:
key: $CI_COMMIT_REF_SLUG
paths:
- bin/
- lib/
- pyvenv.cfg
artifacts:
paths:
- data/pref13/*.txt
- output.log
expire_in: 12 hours
......@@ -4,7 +4,8 @@ ENV DEBIAN_FRONTEND="noninteractive"
RUN apt-get update && \
apt-get dist-upgrade -y && \
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 && \
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 tor && \
apt-get clean && \
rm -rf /var/lib/apt/lists && \
ln -s /usr/bin/python3 /usr/bin/python
ln -s /usr/bin/python3 /usr/bin/python && \
sed -i '/^#ControlPort 9051/s/^#//' /etc/tor/torrc
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