git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bagas Sanjaya <bagasdotme@gmail.com>
To: "Σταύρος Ντέντος" <stdedos@gmail.com>
Cc: "Σταύρος Ντέντος" <stdedos+git@gmail.com>,
	gitster@pobox.com, git@vger.kernel.org
Subject: Re: [PATCH v1 1/1] ci: facilitate dev to mimic a CI environment
Date: Sat, 27 Mar 2021 13:52:01 +0700	[thread overview]
Message-ID: <5196a86c-1153-8998-a8cb-c8bd20687150@gmail.com> (raw)
In-Reply-To: <20210326170505.7771-2-stdedos+git@gmail.com>

On 27/03/21 00.05, Σταύρος Ντέντος wrote:
> diff --git a/Documentation/howto/setup-local-dev-environment-docker.sh b/Documentation/howto/setup-local-dev-environment-docker.sh
> new file mode 100644
> index 0000000000..265602ea55
> --- /dev/null
> +++ b/Documentation/howto/setup-local-dev-environment-docker.sh
> @@ -0,0 +1,43 @@
> +#!/bin/false
Wait, why did you make this documentation /bin/false script? I think
it is better to be in Asciidoc format (.txt)
> +# shellcheck shell=sh
> +
> +# Partially based on instructions from:
> +# ci/run-docker.sh
> +#
> +# Note: Alpine (and consequently the other variant ["non-32-bit"]) complains of:
> +# git-compat-util.h:  1139:	#error "Git requires REG_STARTEND support. Compile with NO_REGEX=NeedsStartEnd"
> +# and no
> +# ```bash
> +# export NO_REGEX=NeedsStartEnd
> +# /usr/src/git/ci/run-docker-build.sh 0
> +# ```
> +# helps
> +
> +docker run -itv "${PWD}:/usr/src/git" --entrypoint /bin/bash "daald/ubuntu32:xenial"
> +
> +# And then, inside, initialize with:
> +
> +export jobname=Linux32
> +
> +# Helpful initializations:
> +
> +cat >> ~/.gdbinit <<"EOF"
> +# https://stackoverflow.com/a/3176802/2309247
> +set history save on
> +set history size -1
> +set history filename ~/.gdb_history
> +EOF
> +chmod 600 ~/.gdbinit
> +
> +# cd to repo
> +
> +cd /usr/src/git/ || echo "cd error!"
> +
> +# In lieu of `$ make`:
> +ci/run-docker-build.sh 0
> +
> +# # And then run a test with:
> +# prove t/t6130-pathspec-noglob.sh
> +# t/t6130-pathspec-noglob.sh
> +# ci/run-docker-build.sh 0 && prove t/t6130-pathspec-noglob.sh
> diff --git a/ci/setup-local-dev-environment-docker.sh b/ci/setup-local-dev-environment-docker.sh
> new file mode 120000
> index 0000000000..1c4bcc90a9
> --- /dev/null
> +++ b/ci/setup-local-dev-environment-docker.sh
> @@ -0,0 +1 @@
> +../Documentation/howto/setup-local-dev-environment-docker.sh
> \ No newline at end of file
> --
> 2.31.0
> 

-- 
An old man doll... just what I always wanted! - Clara

  reply	other threads:[~2021-03-27  6:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-26 17:05 [PATCH v1 0/1] ci: facilitate dev to mimic a CI environment Σταύρος Ντέντος
2021-03-26 17:05 ` [PATCH v1 1/1] " Σταύρος Ντέντος
2021-03-27  6:52   ` Bagas Sanjaya [this message]
2021-03-27  9:08     ` Stavros Ntentos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5196a86c-1153-8998-a8cb-c8bd20687150@gmail.com \
    --to=bagasdotme@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=stdedos+git@gmail.com \
    --cc=stdedos@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).