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é GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Kubat
lektor
Validations
6633be5f
Vérifiée
Valider
6633be5f
rédigé
Il y a 4 ans
par
Kubat
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
CI: Try to fix the CI [gen-appimage]
parent
94516098
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion
!139
Add Appimage builds for lektord, lkt and klkt
Modifications
2
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
.gitlab-ci.yml
+8
-8
8 ajouts, 8 suppressions
.gitlab-ci.yml
utils/scripts/validate.bash
+7
-0
7 ajouts, 0 suppression
utils/scripts/validate.bash
avec
15 ajouts
et
8 suppressions
.gitlab-ci.yml
+
8
−
8
Voir le fichier @
6633be5f
...
@@ -16,12 +16,11 @@ stages:
...
@@ -16,12 +16,11 @@ stages:
variables
:
variables
:
-
$CI_MERGE_REQUEST_TITLE =~ /^WIP:/
-
$CI_MERGE_REQUEST_TITLE =~ /^WIP:/
-
$CI_MERGE_REQUEST_TITLE =~ /^Draft:/
-
$CI_MERGE_REQUEST_TITLE =~ /^Draft:/
-
$CI_COMMIT_TITLE =~ /skip-ci/
-
$CI_COMMIT_TITLE =~ /
.*
skip-ci
.*
/
-
$CI_COMMIT_TITLE =~ /no-build/
-
$CI_COMMIT_TITLE =~ /
.*
no-build
.*
/
variables
:
variables
:
SRC_DIR
:
$CI_PROJECT_DIR
# Where the sources are
SRC_DIR
:
$CI_PROJECT_DIR
# Where the sources are
WORK_DIR
:
"
/home/gitlab-runner/CI_$CI_PIPELINE_ID"
# Where we will work, so that it's not erased
WORK_DIR
:
"
/home/gitlab-runner/CI_$CI_PIPELINE_ID"
# Where we will work, so that it's not erased
TARGET_DIR
:
"
/home/gitlab-runner/dist/lektor/"
# Where generated binaries will be copied
.breaking_tests
:
&breaking_tests
.breaking_tests
:
&breaking_tests
allow_failure
:
true
allow_failure
:
true
...
@@ -29,14 +28,14 @@ stages:
...
@@ -29,14 +28,14 @@ stages:
.bin_generation
:
&bin_generation
.bin_generation
:
&bin_generation
tags
:
tags
:
-
kurisu
-
kurisu
only
:
-
master
-
merge_requests
except
:
except
:
variables
:
variables
:
-
$CI_COMMIT_TITLE =~ /skip-ci/
-
$CI_COMMIT_TITLE == /.*gen-appimage.*/
-
$CI_COMMIT_TITLE =~ /no-build/
-
$CI_COMMIT_TITLE == /gen-appimage/
variables
:
variables
:
SRC_DIR
:
$CI_PROJECT_DIR
# Where the sources are
TARGET_DIR
:
"
/home/gitlab-runner/dist/lektor/"
# Where generated binaries will be copied
WORK_DIR
:
"
/home/gitlab-runner/CI_$CI_PIPELINE_ID"
# Where we will work, so that it's not erased
variables
:
variables
:
GIT_DEPTH
:
3
# No need to clone all the history
GIT_DEPTH
:
3
# No need to clone all the history
...
@@ -113,5 +112,6 @@ build_clang:
...
@@ -113,5 +112,6 @@ build_clang:
appimage_clang
:
appimage_clang
:
<<
:
*bin_generation
<<
:
*bin_generation
<<
:
*main_tests
stage
:
redist
stage
:
redist
script
:
utils/scripts/validate.bash --build=clang --static-modules --appimage --step=configure,build,copy
script
:
utils/scripts/validate.bash --build=clang --static-modules --appimage --step=configure,build,copy
Ce diff est replié.
Cliquez pour l'agrandir.
utils/scripts/validate.bash
+
7
−
0
Voir le fichier @
6633be5f
...
@@ -14,6 +14,7 @@ LKT_DIR="$PWD" # The project directory
...
@@ -14,6 +14,7 @@ LKT_DIR="$PWD" # The project directory
LKT_CONFIGURE_OPTIONS
=
""
# Options to pass to the configure command
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
LKT_APPIMAGE
=
""
# Run configure with --enable-appimage
LKT_SRC
=
$SRC_DIR
# Where to find the sources of lektor
LKT_SRC
=
$SRC_DIR
# Where to find the sources of lektor
LKT_WORK
=
$WORK_DIR
# The work dir, where to play
LKT_WORK
=
$WORK_DIR
# The work dir, where to play
LKT_TARGET_DIR
=
$TARGET_DIR
# The bin dir, where AppImages will be placed
LKT_TARGET_DIR
=
$TARGET_DIR
# The bin dir, where AppImages will be placed
...
@@ -225,6 +226,9 @@ function process_args ()
...
@@ -225,6 +226,9 @@ function process_args ()
if
[
"x
$LKT_STATIC_MODULES
"
=
"xyes"
]
;
then
if
[
"x
$LKT_STATIC_MODULES
"
=
"xyes"
]
;
then
LKT_CONFIGURE_OPTIONS
=
"
$LKT_CONFIGURE_OPTIONS
--with-liblektor=static"
LKT_CONFIGURE_OPTIONS
=
"
$LKT_CONFIGURE_OPTIONS
--with-liblektor=static"
fi
fi
if
[
"x
$LKT_APPIMAGE
"
==
"xyes"
]
;
then
LKT_CONFIGURE_OPTIONS
=
"
$LKT_CONFIGURE_OPTIONS
--enable-appimage"
fi
LKT_CONFIGURE_OPTIONS
=
"
$LKT_CONFIGURE_OPTIONS
CC=
$LKT_COMPILER
"
LKT_CONFIGURE_OPTIONS
=
"
$LKT_CONFIGURE_OPTIONS
CC=
$LKT_COMPILER
"
}
}
...
@@ -238,6 +242,9 @@ for arg in $* ; do
...
@@ -238,6 +242,9 @@ for arg in $* ; do
--debug
)
--debug
)
LKT_DEBUG
=
"yes"
LKT_DEBUG
=
"yes"
;;
;;
--appimage
)
LKT_APPIMAGE
=
"yes"
;;
--build
=
*
)
--build
=
*
)
LKT_COMPILER
=
$(
echo
"A
$arg
"
|
sed
-e
's/A--build=//g'
)
LKT_COMPILER
=
$(
echo
"A
$arg
"
|
sed
-e
's/A--build=//g'
)
;;
;;
...
...
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