Nantes Université
Skip to content
GitLab
Explorer
Connexion
S'inscrire
Navigation principale
Rechercher ou aller à…
Projet
W
web-calculator
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Registre de conteneur
Registre de modèles
Opération
Environnements
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
GL - Ressources Pédagogiques
Développement et exploitation
ressources
web-calculator
Validations
4956815b
Valider
4956815b
rédigé
il y a un an
par
Erwan BOUSSE
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Add WIP CI pipeline
parent
d24f8336
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Pipeline
#75389
réussi
il y a un an
Étape: verification
Étape: publish_docker
Modifications
1
Pipelines
1
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
.gitlab-ci.yml
+86
-0
86 ajouts, 0 suppression
.gitlab-ci.yml
avec
86 ajouts
et
0 suppression
.gitlab-ci.yml
0 → 100644
+
86
−
0
Voir le fichier @
4956815b
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
stages
:
-
verification
-
publish_docker
-
automated_acceptance_testing
unit_testing
:
stage
:
verification
image
:
docker.io/python:3-slim
script
:
-
cd app
-
pip install -r requirements.txt
-
pip install -r tests/requirements.txt
-
mkdir -p reports
-
pytest --junitxml=reports/test-report.xml --cov --cov-report term --cov-report xml:reports/test-coverage.xml
coverage
:
'
/(?i)total.*?
(100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts
:
reports
:
coverage_report
:
coverage_format
:
cobertura
path
:
app/reports/test-coverage.xml
junit
:
app/reports/test-report.xml
rules
:
-
changes
:
-
app/**
-
.gitlab-ci.yml
static_analysis
:
stage
:
verification
image
:
docker.io/python:3-slim
script
:
-
cd app
-
pip install flake8
-
flake8 --output-file=reports/static-analysis-flake8.txt --tee main tests
artifacts
:
paths
:
-
app/reports
rules
:
-
changes
:
-
app/**
-
.gitlab-ci.yml
publish_docker
:
stage
:
publish_docker
image
:
name
:
gcr.io/kaniko-project/executor:v1.13.0-debug
entrypoint
:
[
"
"
]
script
:
-
/kaniko/executor
--context "${CI_PROJECT_DIR}/app"
--build-arg http_proxy=$http_proxy
--build-arg https_proxy=$https_proxy
--build-arg no_proxy=$no_proxy
--dockerfile "${CI_PROJECT_DIR}/app/Dockerfile"
--destination "${CI_REGISTRY_IMAGE}:${CI_PIPELINE_IID}"
--destination "${CI_REGISTRY_IMAGE}:latest"
rules
:
-
changes
:
-
app/**
-
.gitlab-ci.yml
# automated_acceptance_testing:
# stage: automated_acceptance_testing
# image: docker.io/python:3-slim
# services:
# - name: docker.io/selenium/standalone-firefox:latest
# alias: selenium
# - name: "${CI_REGISTRY_IMAGE}:${CI_PIPELINE_IID}"
# - name:
# variables:
# ACCEPTATION_DEPLOYMENT_URL: http://127.0.0.1:5000
# REMOTE_DRIVER_HOST: selenium
# script:
# - cd acceptance
# - pip install .
# - pytest --verbosity=10
# TODO :
# - deploy_testing
# - deploy_staging
# - deploy_production
# make a proper software release + release notes?
\ No newline at end of file
This diff is collapsed.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter