From e41481beb66d56d0f6bc5b9d780d1ba826801dd7 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 27 Sep 2022 20:54:40 +0200 Subject: [PATCH] [ci,windows] Work around "refreshenv" not having any effect --- .gitlab-ci.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b06ac98..77d19a4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,14 +51,15 @@ package_windows: - shared-windows - windows - windows-1809 + variables: + PYTHON: "C:\Python310\python.exe" before_script: - - choco install python --version=$PYTHON_VERSION -y - - refreshenv - - python --version - - pip install pipenv - - pipenv sync --dev + - choco install python --version=$PYTHON_VERSION -y --no-progress + - $PYTHON --version + - $PYTHON -m pip install pipenv + - $PYTHON -m pipenv sync --dev script: - - pipenv run pyinstaller --onefile --name "${WINDOWS_AMD64_BINARY}" src/fime/main.py + - $PYTHON -m pipenv run pyinstaller --onefile --name "${WINDOWS_AMD64_BINARY}" src/fime/main.py artifacts: paths: - dist/fime_windows_*