Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Test formation git
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kevin Fairise
Test formation git
Commits
49f4954a
Commit
49f4954a
authored
4 years ago
by
Fabien Zucchet
Browse files
Options
Downloads
Patches
Plain Diff
restore formation to default
parent
61340821
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+0
-1
0 additions, 1 deletion
.gitignore
.gitlab-ci.yml
+0
-21
0 additions, 21 deletions
.gitlab-ci.yml
code/main.py
+1
-9
1 addition, 9 deletions
code/main.py
with
1 addition
and
31 deletions
.gitignore
deleted
100644 → 0
+
0
−
1
View file @
61340821
code/__pycache__
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
deleted
100644 → 0
+
0
−
21
View file @
61340821
image
:
"
python:3.8"
# La pipeline doit se lancer dans un environnement avec python installé
# before_script avant chaque Job (affichage de la version de Python et installation des dépendances)
before_script
:
-
python --version
-
pip install -r requirements.txt
# On peut définir différents stages (étapes) dans la pipeline. Chaque stage peut avoir plusieurs job
stages
:
-
Testing
# Définition des Jobs
lint
:
stage
:
Testing
# chaque Job est rattaché à une étape
script
:
# Ce sont les commandes qui seront lancées et qui feront fail le job si une erreur est renvoyée
-
pyflakes code/*.py
test
:
stage
:
Testing
# On crée 2 jobs en parallèle dans la même étape
script
:
-
python code/tests.py
\ No newline at end of file
This diff is collapsed.
Click to expand it.
code/main.py
+
1
−
9
View file @
49f4954a
...
@@ -22,12 +22,4 @@ def convert(word):
...
@@ -22,12 +22,4 @@ def convert(word):
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
if
len
(
sys
.
argv
)
==
0
:
print
(
convert
(
translate
(
'
sourire
'
)))
print
(
"
Veuillez entrer une phrase en paramètre.
"
)
\ No newline at end of file
else
:
convertedText
=
""
for
sentence
in
sys
.
argv
:
words
=
sentence
.
split
(
"
"
)
for
word
in
words
:
convertedText
+=
convert
(
translate
(
word
))
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment