From 312e7f7f129249f6d9f4d3314d6c466ca2d5e58c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Mon, 12 Jun 2017 21:50:51 +0200 Subject: [PATCH] Avoid python temporary files in pip tests --- .gitlab-ci.yml | 2 +- Makefile | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eef64c6..89c8412 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -98,7 +98,7 @@ clean : - make -e clean when: manual -cleanup_pypirc: +cleanup_py: stage: clean when: always # this is important; run even if preceding stages failed. script: diff --git a/Makefile b/Makefile index a581a76..da9b78b 100644 --- a/Makefile +++ b/Makefile @@ -76,9 +76,7 @@ test-%: test: test-$(PYMAIN) dist/$(TARNAME): version - docker run --rm -v $$PWD:/usr/src/app/ -w /usr/src/app/ python:$(PYMAIN) python setup.py sdist; - docker run --rm -v $$PWD:/usr/src/app/ -w /usr/src/app/ python:$(PYMAIN) chmod -R a+rwx dist; - + python setup.py sdist; sdist: dist/$(TARNAME)