Commit d997974f authored by Eike Hein's avatar Eike Hein

Do shallow clones

It's a CI, it doesn't need full history for development.
parent e941a2e2
Pipeline #1424 skipped with stage
......@@ -12,7 +12,7 @@ cloned=0
if ! [ -d "$srcdir"/$name ] ; then
mkdir -p "$srcdir"
pushd "$srcdir"
git clone $repo --single-branch $GIT_EXTRA
git clone --depth 1 $repo --single-branch $GIT_EXTRA
cloned=1
popd
fi
......
......@@ -15,7 +15,7 @@ build-kde-dependencies $package
# first we download the project and look for the manifest file
pushd src
git clone kde:$package $APP_GIT_EXTRA || true
git clone --depth 1 kde:$package $APP_GIT_EXTRA || true
popd
manifestFile=`find $(pwd)/src/$package -name AndroidManifest.xml`
......
......@@ -10,7 +10,7 @@ sed -i.bak -e 's|/home/nirbheek/projects/repos/gst/cerbero.git/build/dist/androi
sed -i.bak -e 's|/home/nirbheek/projects/repos/gst/cerbero.git/build/android-ndk-18|/opt/android-ndk|g' armv7/lib/pkgconfig/*.pc
cp -r armv7/* /opt/kdeandroid-deps/
git clone git://anongit.freedesktop.org/gstreamer/gst-plugins-good
git clone --depth 1 git://anongit.freedesktop.org/gstreamer/gst-plugins-good
cd gst-plugins-good/ext/qt
export PKG_CONFIG_SYSROOT_DIR=/
......
......@@ -5,10 +5,10 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export PATH=$DIR:$PATH
# we get the repositories for the dependencies
git clone kde:sysadmin/ci-tooling || true
git clone --depth 1 kde:sysadmin/ci-tooling || true
pushd ci-tooling
git clone kde:sysadmin/repo-metadata || true
git clone kde:kde-build-metadata || true
git clone --depth 1 kde:sysadmin/repo-metadata || true
git clone --depth 1 kde:kde-build-metadata || true
popd
# we figure out the dependencies
......
......@@ -2,7 +2,7 @@
set -e
git clone git://git.openssl.org/openssl.git --branch OpenSSL_1_1_1a
git clone --depth 1 git://git.openssl.org/openssl.git --branch OpenSSL_1_1_1a
pushd openssl
......
......@@ -8,7 +8,7 @@ mkdir -p $HOME/src/
cd $HOME/src/
if [ ! -d freetype2 ] ; then
git clone https://git.savannah.gnu.org/git/freetype/freetype2.git --single-branch -b VER-2-8-1
git clone --depth 1 https://git.savannah.gnu.org/git/freetype/freetype2.git --single-branch -b VER-2-8-1
fi
cd freetype2
CFLAGS=-std=gnu99 build-standalone "./autogen.sh && ./configure --prefix=/opt/kdeandroid-deps --host=${ANDROID_NDK_TOOLCHAIN_PREFIX} && make -j`nproc` && make install"
......
......@@ -10,7 +10,7 @@ shift
srcdir=`pwd`/src
mkdir -p $srcdir
pushd $srcdir
if [ -d $name ] ; then pushd $name; git pull; popd; else git clone $repo $GIT_EXTRA; fi
if [ -d $name ] ; then pushd $name; git pull; popd; else git clone --depth 1 $repo $GIT_EXTRA; fi
popd
mkdir -p build/$name
......
......@@ -12,7 +12,7 @@ mkdir -p $HOME/src/
cd $HOME/src/
if [ ! -d vlc-android ] ; then
git clone https://github.com/videolan/vlc-android.git
git clone --depth 1 https://github.com/videolan/vlc-android.git
fi
cd vlc-android
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment