Use python image for python tasks only
This commit is contained in:
parent
035d1dabc6
commit
11b4b76eae
@ -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.
|
# We are not using the configure_environment job cause it adds all the dependencies, which are not needed for this to work.
|
||||||
documentation:
|
documentation:
|
||||||
stage: generate_docs
|
stage: generate_docs
|
||||||
tags:
|
image: python
|
||||||
- windows
|
|
||||||
- shared-windows
|
|
||||||
- windows-1809
|
|
||||||
script:
|
script:
|
||||||
- Set-Variable -Name "time" -Value (date -Format "%H:%m")
|
|
||||||
- echo ${time}
|
|
||||||
- echo "started by ${GITLAB_USER_NAME}"
|
- echo "started by ${GITLAB_USER_NAME}"
|
||||||
- choco install python3 -y -ForceX86
|
- python -V
|
||||||
- '&$env:PYTHON3_32 -V'
|
|
||||||
### Dependencies.
|
### Dependencies.
|
||||||
- '&$env:PYTHON3_32 -m pip install --upgrade markdown'
|
- python -m pip install --upgrade markdown
|
||||||
# generate all html documents.
|
# generate all html documents.
|
||||||
- copy changelog.md doc\changelog.md
|
- cp changelog.md doc/changelog.md
|
||||||
- cd doc
|
- cd doc
|
||||||
- '&$env:PYTHON3_32 documentation_importer.py'
|
- python documentation_importer.py
|
||||||
- cd ..\src
|
- cd ../src
|
||||||
- '&$env:PYTHON3_32 ..\doc\generator.py'
|
- python ../doc/generator.py
|
||||||
- 'move documentation ..\'
|
- mv -f documentation ../
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
artifacts:
|
artifacts:
|
||||||
|
Loading…
Reference in New Issue
Block a user