Skip to content
GitLab
Explorer
Connexion
S'inscrire
Navigation principale
Rechercher ou aller à…
Projet
S
stats-facil
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de paquets
Registre de conteneur
Registre de modèles
Opération
Environnements
Modules Terraform
Surveillance
Incidents
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
Expériences du modèle
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
facil
stats-facil
Validations
dc48c313
Valider
dc48c313
rédigé
10 years ago
par
diosmosis
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Fix php-versions option handling in generate:travis-yml command.
parent
fe2fb11a
Aucune branche associée trouvée
Branches contenant la validation
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
1
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
plugins/CoreConsole/Commands/GenerateTravisYmlFile.php
+4
-2
4 ajouts, 2 suppressions
plugins/CoreConsole/Commands/GenerateTravisYmlFile.php
avec
4 ajouts
et
2 suppressions
plugins/CoreConsole/Commands/GenerateTravisYmlFile.php
+
4
−
2
Voir le fichier @
dc48c313
...
@@ -37,7 +37,7 @@ class GenerateTravisYmlFile extends ConsoleCommand
...
@@ -37,7 +37,7 @@ class GenerateTravisYmlFile extends ConsoleCommand
"Github token of a user w/ push access to this repository. Used to auto-commit updates to the "
"Github token of a user w/ push access to this repository. Used to auto-commit updates to the "
.
".travis.yml file and checkout dependencies. Will be encrypted in the .travis.yml file.
\n\n
"
.
".travis.yml file and checkout dependencies. Will be encrypted in the .travis.yml file.
\n\n
"
.
"If not supplied, the .travis.yml will fail the build if it needs updating."
)
.
"If not supplied, the .travis.yml will fail the build if it needs updating."
)
->
addOption
(
'php-versions'
,
null
,
InputOption
::
VALUE_IS_ARRAY
|
InputOption
::
VALUE_OPTIONAL
,
->
addOption
(
'php-versions'
,
null
,
InputOption
::
VALUE_OPTIONAL
,
"List of PHP versions to test against, ie, 5.4,5.5,5.6. Defaults to: 5.3.3,5.4,5.5,5.6."
)
"List of PHP versions to test against, ie, 5.4,5.5,5.6. Defaults to: 5.3.3,5.4,5.5,5.6."
)
->
addOption
(
'dump'
,
null
,
InputOption
::
VALUE_REQUIRED
,
"Debugging option. Saves the output .travis.yml to the specified file."
);
->
addOption
(
'dump'
,
null
,
InputOption
::
VALUE_REQUIRED
,
"Debugging option. Saves the output .travis.yml to the specified file."
);
}
}
...
@@ -62,7 +62,9 @@ class GenerateTravisYmlFile extends ConsoleCommand
...
@@ -62,7 +62,9 @@ class GenerateTravisYmlFile extends ConsoleCommand
$view
->
setGenerateYmlCommand
(
$thisConsoleCommand
);
$view
->
setGenerateYmlCommand
(
$thisConsoleCommand
);
$phpVersions
=
$input
->
getOption
(
'php-versions'
);
$phpVersions
=
$input
->
getOption
(
'php-versions'
);
$view
->
setPhpVersions
(
$phpVersions
);
if
(
!
empty
(
$phpVersions
))
{
$view
->
setPhpVersions
(
explode
(
','
,
$phpVersions
));
}
if
(
file_exists
(
$outputYmlPath
))
{
if
(
file_exists
(
$outputYmlPath
))
{
$output
->
writeln
(
"<info>Found existing YAML file at
$outputYmlPath
.</info>"
);
$output
->
writeln
(
"<info>Found existing YAML file at
$outputYmlPath
.</info>"
);
...
...
Ce diff est replié.
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