diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2018-09-17 10:12:38 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-09-17 15:56:17 +0200 |
commit | c7cbef52c27217c3bd529ddef26152fb11093a12 (patch) | |
tree | 950d4849885e7cec23906fdeff0416898f2b1cff | |
parent | df8465c7df41f42e0271a19229be08c2b12828da (diff) | |
download | gnutls-c7cbef52c27217c3bd529ddef26152fb11093a12.tar.gz |
Update git submodules via ./bootstrap
Setting $SUBMODULE_NOFETCH to a non-empty value adds
--no-fetch to the git command (for CI speedup).
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
-rw-r--r-- | .gitlab-ci.yml | 9 | ||||
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | bootstrap.conf | 7 |
3 files changed, 10 insertions, 7 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a14cebb9d0..5c8a297ead 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,8 +41,7 @@ doc-dist.Fedora: stage: stage1-testing image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD script: - - git submodule update --init --no-fetch - - ./bootstrap + - SUBMODULE_NOFETCH=1 ./bootstrap - CFLAGS="-std=c99 -O2 -g" dash ./configure --disable-gcc-warnings --cache-file cache/config.cache --prefix=/usr --libdir=/usr/lib64 --disable-cxx --disable-non-suiteb-curves --enable-gtk-doc --disable-maintainer-mode - make -C doc stamp-vti && make -C doc stamp-1 && make -j$(nproc) - make -C doc gnutls.html @@ -59,8 +58,7 @@ abi/coverage.Debian: stage: stage1-testing image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$DEBIAN_BUILD script: - - git submodule update --init --no-fetch - - ./bootstrap + - SUBMODULE_NOFETCH=1 ./bootstrap - CFLAGS="-g -Og" dash ./configure --disable-gcc-warnings --cache-file cache/config.cache --prefix=/usr --libdir=/usr/lib64 --enable-code-coverage --disable-maintainer-mode --disable-doc - make -j$(nproc) - make abi-check @@ -189,8 +187,7 @@ asan.Fedora.x86_64: stage: stage1-testing image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD script: - - git submodule update --init --no-fetch - - ./bootstrap + - SUBMODULE_NOFETCH=1 ./bootstrap - CFLAGS="-fsanitize=address -g -O2" CXXFLAGS=$CFLAGS LDFLAGS="-static-libasan" dash ./configure --disable-gcc-warnings --disable-doc --cache-file cache/config.cache --disable-non-suiteb-curves --disable-guile - make -j$(nproc) @@ -100,7 +100,6 @@ To download the version controlled sources: ``` $ git clone https://gitlab.com/gnutls/gnutls.git $ cd gnutls -$ git submodule update --init ``` The next step is to bootstrap and ./configure: diff --git a/bootstrap.conf b/bootstrap.conf index 836f1a6f8a..87bf4d5866 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -59,6 +59,13 @@ else $GTKDOCIZE fi +# update git submodules +git_options= +if test -n "$SUBMODULE_NOFETCH"; then + git_options="--no-fetch" +fi +git submodule update --init $git_options + bootstrap_post_import_hook () { # we re-use malloc-posix from the original gnulib |