You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2019/08/08 17:52:02 UTC

[couchdb] 04/05: Avoid shebang length limits on jenkins

This is an automated email from the ASF dual-hosted git repository.

kocolosk pushed a commit to branch junit-reports-and-jenkins-env
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 45cc06dbc13f39282cf77023b2847ebd34931fdf
Author: Adam Kocoloski <ko...@apache.org>
AuthorDate: Wed Aug 7 11:18:15 2019 -0400

    Avoid shebang length limits on jenkins
    
    The `pip3` and `nosetest` executables are scripts, and on jenkins
    the specified interpreter can exceed the 128 character length limit
    because of the deeply-nested workspace. Invoking these as modules seems
    the preferred workaround per pypa/pip#1773
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index f5d15d4..8f85ab8 100644
--- a/Makefile
+++ b/Makefile
@@ -370,8 +370,8 @@ build-test:
 mango-test: devclean all
 	@cd src/mango && \
 		python3 -m venv .venv && \
-		.venv/bin/pip3 install -r requirements.txt
-	@cd src/mango && ../../dev/run -n 1 --admin=testuser:testpass .venv/bin/nosetests
+		.venv/bin/python3 -m pip install -r requirements.txt
+	@cd src/mango && ../../dev/run -n 1 --admin=testuser:testpass '.venv/bin/python3 -m nose'
 
 ################################################################################
 # Developing