From e9bc10a056c3379b57115c6e83022f48c6298e1d Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 17 Sep 2018 19:27:18 -0400 Subject: [PATCH] Fix python package build and push scripts. Signed-off-by: Roberto Rosario --- .gitlab-ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c11478a03..13c6f1bdd1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -54,13 +54,18 @@ job_docker_nightly: job_build_python: stage: build_python image: ubuntu:18.04 + artifacts: + expire_in: 1 hr + paths: + - dist + before_script: + - apt-get -qq update + - apt-get install -qq locales make python-pip script: - echo "LC_ALL=\"en_US.UTF-8\"" >> /etc/default/locale - locale-gen en_US.UTF-8 - update-locale LANG=en_US.UTF-8 - export LC_ALL=en_US.UTF-8 - - apt-get update -y - - apt-get install -y make python-pip - pip install -r requirements/build.txt - make wheel only: @@ -70,7 +75,10 @@ job_push_python: stage: push_python image: ubuntu:18.04 before_script: + - apt-get -qq update + - apt-get install -qq python-pip script: + - pip install -r requirements/build.txt - echo "$PYPIRC" > ~/.pypirc - twine upload dist/* -r pypi only: