From: "Đoàn Trần Công Danh" <congdanhqx@gmail.com>
To: git@vger.kernel.org
Cc: "Đoàn Trần Công Danh" <congdanhqx@gmail.com>
Subject: [PATCH 2/2] CI: enable t1509 in Travis and GitHub Actions
Date: Wed, 13 May 2020 20:23:07 +0700 [thread overview]
Message-ID: <fa2e1f7b44262eac1fa26161fc5d3f3b9b6bdb47.1589375923.git.congdanhqx@gmail.com> (raw)
In-Reply-To: <cover.1589375923.git.congdanhqx@gmail.com>
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
---
ci/lib.sh | 13 +++++++++++++
ci/run-docker-build.sh | 3 +++
2 files changed, 16 insertions(+)
diff --git a/ci/lib.sh b/ci/lib.sh
index dac36886e3..e9c22ae718 100755
--- a/ci/lib.sh
+++ b/ci/lib.sh
@@ -113,6 +113,7 @@ then
export GIT_PROVE_OPTS="--timer --jobs 3 --state=failed,slow,save"
export GIT_TEST_OPTS="--verbose-log -x --immediate"
MAKEFLAGS="$MAKEFLAGS --jobs=2"
+ t1509_allowed=YES
elif test -n "$SYSTEM_COLLECTIONURI" || test -n "$SYSTEM_TASKDEFINITIONSURI"
then
CI_TYPE=azure-pipelines
@@ -162,6 +163,7 @@ then
echo "::add-matcher::ci/git-problem-matcher.json"
test linux-musl = "$jobname" ||
MAKEFLAGS="$MAKEFLAGS TEST_SHELL_PATH=/bin/sh"
+ t1509_allowed=YES
else
echo "Could not identify CI type" >&2
env >&2
@@ -184,6 +186,17 @@ export DEVELOPER=1
export DEFAULT_TEST_TARGET=prove
export GIT_TEST_CLONE_2GB=true
+if test "$t1509_allowed" = YES
+then
+ case "$jobname" in
+ osx-*) ;;
+ *)
+ chmod a+w / || sudo chmod a+w / || true
+ export IKNOWWHATIAMDOING=YES
+ ;;
+ esac
+fi
+
case "$jobname" in
linux-clang|linux-gcc)
if [ "$jobname" = linux-gcc ]
diff --git a/ci/run-docker-build.sh b/ci/run-docker-build.sh
index 8d47a5fda3..026afe275a 100755
--- a/ci/run-docker-build.sh
+++ b/ci/run-docker-build.sh
@@ -58,6 +58,8 @@ else
test -n "$cache_dir" && chown -R $HOST_UID:$HOST_UID "$cache_dir"
fi
+chmod a+w /
+
# Build and test
command $switch_cmd su -m -l $CI_USER -c "
set -ex
@@ -68,6 +70,7 @@ command $switch_cmd su -m -l $CI_USER -c "
export GIT_TEST_CLONE_2GB='$GIT_TEST_CLONE_2GB'
export MAKEFLAGS='$MAKEFLAGS'
export cache_dir='$cache_dir'
+ export IKNOWWHATIAMDOING=YES
cd /usr/src/git
test -n '$cache_dir' && ln -s '$cache_dir/.prove' t/.prove
make
--
2.26.2.672.g232c24e857
next prev parent reply other threads:[~2020-05-13 13:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-13 13:23 [PATCH 0/2] CI: Enable t1509 on GitHub Actions and Travis Đoàn Trần Công Danh
2020-05-13 13:23 ` [PATCH 1/2] t1509: correct i18n test Đoàn Trần Công Danh
2020-05-13 16:43 ` Junio C Hamano
2020-05-13 13:23 ` Đoàn Trần Công Danh [this message]
2020-05-13 16:51 ` [PATCH 2/2] CI: enable t1509 in Travis and GitHub Actions Junio C Hamano
2020-05-13 23:52 ` Đoàn Trần Công Danh
2020-05-13 23:59 ` Junio C Hamano
2020-05-13 16:41 ` [PATCH 0/2] CI: Enable t1509 on GitHub Actions and Travis Junio C Hamano
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=fa2e1f7b44262eac1fa26161fc5d3f3b9b6bdb47.1589375923.git.congdanhqx@gmail.com \
--to=congdanhqx@gmail.com \
--cc=git@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.