Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
lektor
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
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
Kubat
lektor
Validations
a41943e4
Vérifiée
Valider
a41943e4
rédigé
4 years ago
par
Kubat
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
CI: Snake-case the CI file, add a really basic test
parent
762c07a6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion
!105
Refactor and more
Modifications
2
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
.gitlab-ci.yml
+28
-16
28 ajouts, 16 suppressions
.gitlab-ci.yml
scripts/validate.bash
+18
-1
18 ajouts, 1 suppression
scripts/validate.bash
avec
46 ajouts
et
17 suppressions
.gitlab-ci.yml
+
28
−
16
Voir le fichier @
a41943e4
stages
:
stages
:
-
Initialization
-
initialization
-
Configures
-
configure
-
Builds
-
build
-
Finalization
-
test
-
finalization
.main_tests
:
&main_tests
.main_tests
:
&main_tests
tags
:
tags
:
...
@@ -18,16 +19,16 @@ stages:
...
@@ -18,16 +19,16 @@ stages:
### Initialization and Finalization #############
### Initialization and Finalization #############
#################################################
#################################################
E
nv
S
anitize
:
e
nv
_s
anitize
:
<<
:
*main_tests
<<
:
*main_tests
stage
:
I
nitialization
stage
:
i
nitialization
script
:
script
:
-
mkdir -p $HOME/$CI_PIPELINE_ID/{build.clang,build.gcc,install.clang,install.gcc}
-
mkdir -p $HOME/$CI_PIPELINE_ID/{build.clang,build.gcc,install.clang,install.gcc}
-
echo "Env is intialized"
-
echo "Env is intialized"
E
nv
F
inalize
:
e
nv
_f
inalize
:
<<
:
*main_tests
<<
:
*main_tests
stage
:
F
inalization
stage
:
f
inalization
allow_failure
:
true
allow_failure
:
true
when
:
always
when
:
always
script
:
script
:
...
@@ -37,16 +38,16 @@ Env Finalize:
...
@@ -37,16 +38,16 @@ Env Finalize:
### Configures ##################################
### Configures ##################################
#################################################
#################################################
C
onfigure
with
gcc
:
c
onfigure
_
gcc
:
<<
:
*main_tests
<<
:
*main_tests
stage
:
C
onfigure
s
stage
:
c
onfigure
script
:
script
:
-
cd $HOME/$CI_PIPELINE_ID/
-
cd $HOME/$CI_PIPELINE_ID/
-
scripts/validate.bash --compiler=clang --debug --static-modules --step=configure
-
scripts/validate.bash --compiler=clang --debug --static-modules --step=configure
C
onfigure
with
clang
:
c
onfigure
_
clang
:
<<
:
*main_tests
<<
:
*main_tests
stage
:
C
onfigure
s
stage
:
c
onfigure
script
:
script
:
-
cd $HOME/$CI_PIPELINE_ID/
-
cd $HOME/$CI_PIPELINE_ID/
-
scripts/validate.bash --compiler=clang --debug --static-modules --step=configure
-
scripts/validate.bash --compiler=clang --debug --static-modules --step=configure
...
@@ -55,16 +56,27 @@ Configure with clang:
...
@@ -55,16 +56,27 @@ Configure with clang:
### Builds ######################################
### Builds ######################################
#################################################
#################################################
B
uild
with
gcc
:
b
uild
_
gcc
:
<<
:
*main_tests
<<
:
*main_tests
stage
:
B
uild
s
stage
:
b
uild
script
:
script
:
-
cd $HOME/$CI_PIPELINE_ID/
-
cd $HOME/$CI_PIPELINE_ID/
-
scripts/validate.bash --compiler=gcc --step=build
-
scripts/validate.bash --compiler=gcc --step=build
B
uild
with
clang
:
b
uild
_
clang
:
<<
:
*main_tests
<<
:
*main_tests
stage
:
B
uild
s
stage
:
b
uild
script
:
script
:
-
cd $HOME/$CI_PIPELINE_ID/build.clang
-
cd $HOME/$CI_PIPELINE_ID/build.clang
-
scripts/validate.bash --compiler=clang --step=build
-
scripts/validate.bash --compiler=clang --step=build
#################################################
### Tests #######################################
#################################################
test_basic
:
<<
:
*main_tests
stage
:
test
script
:
-
cd $HOME/$CI_PIPELINE_ID/build.clang
-
scripts/validate.bash --compiler=clang --step=launch --test=simple
Ce diff est replié.
Cliquez pour l'agrandir.
scripts/validate.bash
+
18
−
1
Voir le fichier @
a41943e4
...
@@ -15,6 +15,18 @@ LKT_CONFIGURE_OPTIONS="" # Options to pass to the configure command
...
@@ -15,6 +15,18 @@ LKT_CONFIGURE_OPTIONS="" # Options to pass to the configure command
LKT_CORE_NUMBER
=
4
# Number of cores to use with make
LKT_CORE_NUMBER
=
4
# Number of cores to use with make
LKT_TEST
=
""
# Which tests to perform
LKT_TEST
=
""
# Which tests to perform
### AVAILABLE TESTS ##########################################################
function
test_simple
()
{
check_cd
$LKT_DIR
/install.
$LKT_COMPILER
/
./lektord &
local
_child_pid
=
$!
./lkt
pwd
=
hashire adm kil
sleep
5
kill
$_child_pid
}
### Utility functions ########################################################
### Utility functions ########################################################
function
die
()
function
die
()
{
{
...
@@ -121,7 +133,12 @@ function do_steps ()
...
@@ -121,7 +133,12 @@ function do_steps ()
function
do_launch
()
function
do_launch
()
{
{
check_cd
$LKT_DIR
check_cd
$LKT_DIR
die
"No test available"
for
test
in
$LKT_TEST
;
do
case
"
$test
"
in
simple
)
test_simple
;;
*
)
die
"Test not available"
esac
done
}
}
### PROCESS ARGS #############################################################
### PROCESS ARGS #############################################################
...
...
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