2021-06-28 03:28:43 -05:00
|
|
|
variables:
|
2021-06-28 03:40:00 -05:00
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
2022-11-02 09:41:29 -06:00
|
|
|
PYTHON: "C:\\python310\\python.exe"
|
2022-12-09 16:41:18 -06:00
|
|
|
PYTHON37: "C:\\python37\\python.exe" # for Windows 7 support.
|
2021-06-28 03:28:43 -05:00
|
|
|
NSIS: "C:\\program files (x86)\\nsis\\makensis.exe"
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
2021-06-28 04:16:59 -05:00
|
|
|
- make_installer
|
2021-06-28 03:28:43 -05:00
|
|
|
- upload
|
|
|
|
|
2021-10-26 13:04:49 -05:00
|
|
|
twblue32:
|
2021-06-28 03:28:43 -05:00
|
|
|
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}"
|
2022-11-02 09:41:29 -06:00
|
|
|
- choco install python --version 3.10.8 -y -ForceX86
|
2021-06-28 03:28:43 -05:00
|
|
|
- '&$env:PYTHON -V'
|
|
|
|
- '&$env:PYTHON -m pip install --upgrade pip'
|
2022-11-02 09:41:29 -06:00
|
|
|
- '&$env:PYTHON -m pip install --upgrade https://github.com/josephsl/wxpy32whl/blob/main/wxPython-4.2.0-cp310-cp310-win32.whl?raw=true'
|
2021-06-28 03:28:43 -05:00
|
|
|
- '&$env:PYTHON -m pip install --upgrade -r requirements.txt'
|
|
|
|
stage: build
|
|
|
|
interruptible: true
|
|
|
|
script:
|
|
|
|
# Create html documentation firstly.
|
|
|
|
- cd doc
|
|
|
|
- '&$env:PYTHON documentation_importer.py'
|
|
|
|
- cd ..\src
|
|
|
|
- '&$env:PYTHON ..\doc\generator.py'
|
2021-10-26 13:41:22 -05:00
|
|
|
- '&$env:PYTHON write_version_data.py'
|
2022-12-06 09:12:09 -06:00
|
|
|
- New-Item "appkeys.py" -ItemType File -Value "twitter_api_key='$TWITTER_API_KEY'`ntwitter_api_secret='$TWITTER_API_SECRET'"
|
2021-06-28 03:28:43 -05:00
|
|
|
- '&$env:PYTHON setup.py build'
|
|
|
|
- cd ..
|
|
|
|
- mkdir artifacts
|
2021-06-28 04:16:59 -05:00
|
|
|
- cd scripts
|
|
|
|
- '&$env:PYTHON make_archive.py'
|
|
|
|
- cd ..
|
2021-06-28 03:28:43 -05:00
|
|
|
- mv src/dist artifacts/TWBlue
|
2021-10-26 13:04:49 -05:00
|
|
|
- move src/twblue.zip artifacts/twblue_x86.zip
|
2021-10-26 15:19:57 -05:00
|
|
|
# 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
|
2021-06-28 03:28:43 -05:00
|
|
|
only:
|
2022-12-09 16:41:18 -06:00
|
|
|
- tags
|
2022-12-09 12:55:58 -06:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- artifacts
|
|
|
|
expire_in: 1 day
|
|
|
|
|
2022-12-09 16:41:18 -06:00
|
|
|
twblue64:
|
2022-12-09 12:55:58 -06:00
|
|
|
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}"
|
2022-12-09 16:41:18 -06:00
|
|
|
- choco install python --version 3.10.8 -y
|
|
|
|
- '&$env:PYTHON -V'
|
|
|
|
- '&$env:PYTHON -m pip install --upgrade pip'
|
|
|
|
- '&$env:PYTHON -m pip install --upgrade -r requirements.txt'
|
2022-12-09 12:55:58 -06:00
|
|
|
stage: build
|
|
|
|
interruptible: true
|
|
|
|
script:
|
|
|
|
# Create html documentation firstly.
|
|
|
|
- cd doc
|
2022-12-09 16:41:18 -06:00
|
|
|
- '&$env:PYTHON documentation_importer.py'
|
2022-12-09 12:55:58 -06:00
|
|
|
- cd ..\src
|
2022-12-09 16:41:18 -06:00
|
|
|
- '&$env:PYTHON ..\doc\generator.py'
|
|
|
|
- '&$env:PYTHON write_version_data.py'
|
2022-12-09 12:55:58 -06:00
|
|
|
- New-Item "appkeys.py" -ItemType File -Value "twitter_api_key='$TWITTER_API_KEY'`ntwitter_api_secret='$TWITTER_API_SECRET'"
|
2022-12-09 16:41:18 -06:00
|
|
|
- '&$env:PYTHON setup.py build'
|
2022-12-09 12:55:58 -06:00
|
|
|
- cd ..
|
|
|
|
- mkdir artifacts
|
|
|
|
- cd scripts
|
2022-12-09 16:41:18 -06:00
|
|
|
- '&$env:PYTHON make_archive.py'
|
2022-12-09 12:55:58 -06:00
|
|
|
- cd ..
|
2022-12-09 16:41:18 -06:00
|
|
|
- mv src/dist artifacts/TWBlue64
|
|
|
|
- move src/twblue.zip artifacts/twblue_x64.zip
|
2022-12-09 12:55:58 -06:00
|
|
|
only:
|
2022-12-09 16:41:18 -06:00
|
|
|
- tags
|
2021-06-28 03:28:43 -05:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- artifacts
|
|
|
|
expire_in: 1 day
|
|
|
|
|
2022-12-09 16:41:18 -06:00
|
|
|
twblueWin7:
|
2021-06-28 03:28:43 -05:00
|
|
|
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}"
|
2022-12-09 16:41:18 -06:00
|
|
|
- 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 https://github.com/josephsl/wxpy32whl/blob/main/wxPython-4.2.0-cp37-cp37m-win32.whl?raw=true'
|
|
|
|
- '&$env:PYTHON37 -m pip install --upgrade -r requirements.txt'
|
2021-06-28 03:28:43 -05:00
|
|
|
stage: build
|
|
|
|
interruptible: true
|
|
|
|
script:
|
|
|
|
# Create html documentation firstly.
|
|
|
|
- cd doc
|
2022-12-09 16:41:18 -06:00
|
|
|
- '&$env:PYTHON37 documentation_importer.py'
|
2021-06-28 03:28:43 -05:00
|
|
|
- cd ..\src
|
2022-12-09 16:41:18 -06:00
|
|
|
- '&$env:PYTHON37 ..\doc\generator.py'
|
|
|
|
- '&$env:PYTHON37 write_version_data.py'
|
2022-12-06 09:12:09 -06:00
|
|
|
- New-Item "appkeys.py" -ItemType File -Value "twitter_api_key='$TWITTER_API_KEY'`ntwitter_api_secret='$TWITTER_API_SECRET'"
|
2022-12-09 16:41:18 -06:00
|
|
|
- '&$env:PYTHON37 setup.py build'
|
2021-06-28 03:28:43 -05:00
|
|
|
- cd ..
|
|
|
|
- mkdir artifacts
|
2021-06-28 04:16:59 -05:00
|
|
|
- cd scripts
|
2022-12-09 16:41:18 -06:00
|
|
|
- '&$env:PYTHON37 make_archive.py'
|
2021-06-28 04:16:59 -05:00
|
|
|
- cd ..
|
2022-12-09 16:41:18 -06:00
|
|
|
- move src/twblue.zip artifacts/twblue_windows7_x86.zip
|
2021-06-28 03:28:43 -05:00
|
|
|
only:
|
2022-12-09 16:41:18 -06:00
|
|
|
- next-gen
|
2021-06-28 03:28:43 -05:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- artifacts
|
|
|
|
expire_in: 1 day
|
2021-06-28 04:16:59 -05:00
|
|
|
|
|
|
|
generate_versions:
|
2021-06-28 04:20:54 -05:00
|
|
|
stage: make_installer
|
2021-06-28 04:16:59 -05:00
|
|
|
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 nsis -y -ForceX86
|
|
|
|
script:
|
|
|
|
- move artifacts/TWBlue scripts/
|
|
|
|
- move artifacts/TWBlue64 scripts/
|
2021-10-26 15:47:03 -05:00
|
|
|
- move artifacts/twblue.nsi scripts/installer.nsi
|
2021-06-28 04:50:36 -05:00
|
|
|
- cd scripts
|
2021-10-26 15:47:03 -05:00
|
|
|
- '&$env:NSIS installer.nsi'
|
2021-10-26 13:04:49 -05:00
|
|
|
- move twblue_setup.exe ../artifacts
|
2021-07-04 05:51:59 -05:00
|
|
|
only:
|
2022-12-09 16:41:18 -06:00
|
|
|
- tags
|
2021-06-28 04:16:59 -05:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- artifacts
|
2021-06-28 05:26:42 -05:00
|
|
|
expire_in: 1 day
|
|
|
|
|
|
|
|
upload:
|
|
|
|
stage: upload
|
|
|
|
tags:
|
|
|
|
- linux
|
|
|
|
image: python
|
|
|
|
interruptible: true
|
|
|
|
script:
|
|
|
|
- cd artifacts
|
|
|
|
- python ../scripts/upload.py
|
|
|
|
only:
|
|
|
|
- tags
|
2022-12-09 16:41:18 -06:00
|
|
|
- schedules
|