git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] travis-ci: don't store P4 and Git LFS in the working tree

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Dec 31, 2017, 16:02 UTC
Message-ID
<20171231160206.19481-2-szeder.dev@gmail.com>
In-Reply-To
<20171231160206.19481-1-szeder.dev@gmail.com>

The Clang and GCC 64 bit Linux build jobs download and store the P4 and Git LFS executables under the current directory, which is the working tree that we are about to build and test. This means that Git commands like 'status' or 'ls-files' would list these files as untracked. The next commit is about to make sure that there are no untracked files present after the build, and the downloaded executables in the working tree are interfering with those upcoming checks.

Therefore, let's download P4 and Git LFS in the home directory, outside of the working tree.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
---
 ci/lib-travisci.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ci/lib-travisci.sh b/ci/lib-travisci.sh
index bade71617..1543b7959 100755
--- a/ci/lib-travisci.sh
+++ b/ci/lib-travisci.sh
@@ -99,8 +99,8 @@ linux-clang|linux-gcc)
 	export LINUX_P4_VERSION="16.2"
 	export LINUX_GIT_LFS_VERSION="1.5.2"
 
-	P4_PATH="$(pwd)/custom/p4"
-	GIT_LFS_PATH="$(pwd)/custom/git-lfs"
+	P4_PATH="$HOME/custom/p4"
+	GIT_LFS_PATH="$HOME/custom/git-lfs"
 	export PATH="$GIT_LFS_PATH:$P4_PATH:$PATH"
 	;;
 osx-clang|osx-gcc)
-- 
2.16.0.rc0.67.g3a46dbca7
Previous: SZEDER GáborNext: Lars Schneider
Message 2 of 7 in “Travis CI: check unignored build artifacts”
  1. 0/2 Travis CI: check unignored build artifactsSZEDER Gábor, Dec 31, 2017
  2. 1/2 travis-ci: don't store P4 and Git LFS in the working treeSZEDER Gábor, Dec 31, 2017
  3. Lars SchneiderJan 2, 2018
  4. 2/2 travis-ci: check that all build artifacts are .gitignore-dSZEDER Gábor, Dec 31, 2017
  5. Lars SchneiderJan 2, 2018
  6. SZEDER GáborJan 2, 2018
  7. Lars SchneiderJan 3, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.