Modified CI for an experiment with Window 7 versions

This commit is contained in:
Manuel Cortez 2022-12-09 12:55:58 -06:00
parent 4d46bab37f
commit 924cc83090
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790

View File

@ -1,6 +1,7 @@
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
PYTHON: "C:\\python310\\python.exe" PYTHON: "C:\\python310\\python.exe"
PYTHON37: "C:\\python310\\python.exe"
NSIS: "C:\\program files (x86)\\nsis\\makensis.exe" NSIS: "C:\\program files (x86)\\nsis\\makensis.exe"
stages: stages:
@ -43,7 +44,44 @@ twblue32:
# Move the generated script nsis file to artifacts, so we won't need python when generating the installer. # Move the generated script nsis file to artifacts, so we won't need python when generating the installer.
- move scripts/twblue.nsi artifacts/twblue.nsi - move scripts/twblue.nsi artifacts/twblue.nsi
only: only:
- tags - schedules
artifacts:
paths:
- artifacts
expire_in: 1 day
twblueWin7:
tags:
- shared-windows
- windows
- windows-1809
before_script:
- Set-Variable -Name "time" -Value (date -Format "%H:%m")
- echo ${time}
- echo "started by ${GITLAB_USER_NAME}"
- choco install python --version 3.7.9 -y -ForceX86
- '&$env:PYTHON37 -V'
- '&$env:PYTHON37 -m pip install --upgrade pip'
- '&$env:PYTHON37 -m pip install --upgrade -r requirements.txt'
stage: build
interruptible: true
script:
# Create html documentation firstly.
- cd doc
- '&$env:PYTHON37 documentation_importer.py'
- cd ..\src
- '&$env:PYTHON37 ..\doc\generator.py'
- '&$env:PYTHON37 write_version_data.py'
- New-Item "appkeys.py" -ItemType File -Value "twitter_api_key='$TWITTER_API_KEY'`ntwitter_api_secret='$TWITTER_API_SECRET'"
- '&$env:PYTHON37 setup.py build'
- cd ..
- mkdir artifacts
- cd scripts
- '&$env:PYTHON37 make_archive.py'
- cd ..
- move src/twblue.zip artifacts/twblue_windows7_x86.zip
only:
- next-gen
artifacts: artifacts:
paths: paths:
- artifacts - artifacts
@ -81,7 +119,7 @@ twblue64:
- mv src/dist artifacts/TWBlue64 - mv src/dist artifacts/TWBlue64
- move src/twblue.zip artifacts/twblue_x64.zip - move src/twblue.zip artifacts/twblue_x64.zip
only: only:
- tags - schedules
artifacts: artifacts:
paths: paths:
- artifacts - artifacts
@ -106,7 +144,7 @@ generate_versions:
- '&$env:NSIS installer.nsi' - '&$env:NSIS installer.nsi'
- move twblue_setup.exe ../artifacts - move twblue_setup.exe ../artifacts
only: only:
- tags - schedules
artifacts: artifacts:
paths: paths:
- artifacts - artifacts
@ -123,4 +161,4 @@ upload:
- python ../scripts/upload.py - python ../scripts/upload.py
only: only:
- tags - tags
- schedules # - schedules