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

ppparis: corrige l'ordre alphabétique

parent bcc4bed2
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -28,6 +28,32 @@ docker:
changes:
- Dockerfile-base
test_ppparis:
stage: test
image: registry.git.laquadrature.net/bastien/raaspotter/base:latest
tags:
- unprivileged
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/ppparis/* || true
- rm artifacts.zip || true
- source bin/activate
- python ./cli.py --pref ppparis
retry: 2
only:
- main
cache:
key: $CI_COMMIT_REF_SLUG
paths:
- bin/
- lib/
- pyvenv.cfg
artifacts:
paths:
- data/ppparis/*.txt
- output.log
expire_in: 1 hour
install:
stage: install
......@@ -212,30 +238,3 @@ test_pref62:
- data/pref62/*.txt
- output.log
expire_in: 1 hour
test_ppparis:
stage: test
image: registry.git.laquadrature.net/bastien/raaspotter/base:latest
tags:
- unprivileged
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/ppparis/* || true
- rm artifacts.zip || true
- source bin/activate
- python ./cli.py --pref ppparis
retry: 2
only:
- main
cache:
key: $CI_COMMIT_REF_SLUG
paths:
- bin/
- lib/
- pyvenv.cfg
artifacts:
paths:
- data/ppparis/*.txt
- output.log
expire_in: 1 hour
make: pref06 pref13 pref35 pref38 pref59 pref62 ppparis
make: ppparis pref06 pref13 pref35 pref38 pref59 pref62
ppparis:
python cli.py --pref ppparis
pref06:
python cli.py --pref pref06
pref13:
......@@ -11,5 +13,3 @@ pref59:
python cli.py --pref pref59
pref62:
python cli.py --pref pref62
ppparis:
python cli.py --pref ppparis
......@@ -32,12 +32,12 @@ Il est possible de ne lancer l'analyse que pour une seule administration, avec l
## Administrations supportées
- Préfecture de police de Paris (identifiant : `ppparis`)
- Préfecture des Alpes-Maritimes (identifiant : `pref06`)
- Préfecture des Bouches-du-Rhône (identifiant : `pref13`)
- Préfecture d'Ille-et-Vilaine (identifiant : `pref35`)
- Préfecture du Nord (identifiant : `pref59`)
- Préfecture du Pas-de-Calais (identifiant : `pref62`)
- Préfecture de police de Paris (identifiant : `ppparis`)
## Licence
......
......@@ -35,13 +35,13 @@ __MASTODON_INSTANCE = os.getenv('MASTODON_INSTANCE')
# Liste des préfectures supportées
available_prefs = [
'ppparis',
'pref06',
'pref13',
'pref35',
'pref38',
'pref59',
'pref62',
'ppparis'
'pref62'
]
# Début du script
......
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