From 11b4b76eae0d169a4b7463596be7637f86ef2987 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Mon, 18 Jan 2021 15:20:59 -0600 Subject: [PATCH] Use python image for python tasks only --- .gitlab-ci.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9151442..58ab53f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,25 +31,19 @@ stages: # We are not using the configure_environment job cause it adds all the dependencies, which are not needed for this to work. documentation: stage: generate_docs - tags: - - windows - - shared-windows - - windows-1809 + image: python script: - - Set-Variable -Name "time" -Value (date -Format "%H:%m") - - echo ${time} - echo "started by ${GITLAB_USER_NAME}" - - choco install python3 -y -ForceX86 - - '&$env:PYTHON3_32 -V' + - python -V ### Dependencies. - - '&$env:PYTHON3_32 -m pip install --upgrade markdown' + - python -m pip install --upgrade markdown # generate all html documents. - - copy changelog.md doc\changelog.md + - cp changelog.md doc/changelog.md - cd doc - - '&$env:PYTHON3_32 documentation_importer.py' - - cd ..\src - - '&$env:PYTHON3_32 ..\doc\generator.py' - - 'move documentation ..\' + - python documentation_importer.py + - cd ../src + - python ../doc/generator.py + - mv -f documentation ../ only: - master artifacts: