Dropped support for Python 2 builds
This commit is contained in:
parent
d0e9696022
commit
44f0f6cbdf
@ -11,7 +11,6 @@ variables:
|
|||||||
PYTHON3: "C:\\python37\\python.exe"
|
PYTHON3: "C:\\python37\\python.exe"
|
||||||
PYINSTALLER: "C:\\python37\\scripts\\pyinstaller.exe"
|
PYINSTALLER: "C:\\python37\\scripts\\pyinstaller.exe"
|
||||||
NSIS: "C:\\nsis\\makensis.exe"
|
NSIS: "C:\\nsis\\makensis.exe"
|
||||||
PYTHON2: "C:\\python27\\python.exe"
|
|
||||||
|
|
||||||
### Stage list
|
### Stage list
|
||||||
# Build: This will be the main stage generating stuff in the dist folder. Jobs present in this stage will run py2exe or pyinstaller files accordingly.
|
# Build: This will be the main stage generating stuff in the dist folder. Jobs present in this stage will run py2exe or pyinstaller files accordingly.
|
||||||
@ -105,66 +104,3 @@ build_setup:
|
|||||||
paths:
|
paths:
|
||||||
- "music_dl_*"
|
- "music_dl_*"
|
||||||
name: music_dl
|
name: music_dl
|
||||||
|
|
||||||
### Python 2 version
|
|
||||||
# this version exists for compatibility reasons with Windows XP and old operating systems and may be deleted any time soon.
|
|
||||||
# Automatic updates and generation of a windows installer file are not supported for this version.
|
|
||||||
# The following jobs are not documented as they are basically the same than those used for python 3.
|
|
||||||
|
|
||||||
# Python 2 tests
|
|
||||||
test_py2:
|
|
||||||
stage: test
|
|
||||||
tags:
|
|
||||||
- windows10
|
|
||||||
before_script:
|
|
||||||
- '%PYTHON2% -v'
|
|
||||||
- '%PYTHON2% -m pip install --upgrade pip'
|
|
||||||
- '%PYTHON2% -m pip install --upgrade -r requirements.txt'
|
|
||||||
script:
|
|
||||||
- cd src
|
|
||||||
- '%PYTHON2% -m coverage run run_tests.py'
|
|
||||||
- '%PYTHON2% -m coverage report --omit="*/test*"'
|
|
||||||
coverage: '/TOTAL.+ ([0-9]{1,3}%)/'
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
- tags
|
|
||||||
- schedule_pipelines
|
|
||||||
|
|
||||||
build_py2:
|
|
||||||
stage: build
|
|
||||||
tags:
|
|
||||||
- windows10
|
|
||||||
before_script:
|
|
||||||
- '%PYTHON2% -v'
|
|
||||||
- '%PYTHON2% -m pip install --upgrade pip'
|
|
||||||
- '%PYTHON2% -m pip install --upgrade -r requirements.txt'
|
|
||||||
- '%PYTHON2% -m pip install --upgrade pypubsub==3.3.0 PySocks win_inet_pton'
|
|
||||||
script:
|
|
||||||
- cd src
|
|
||||||
- '%PYTHON2% setup.py py2exe'
|
|
||||||
# Make the dist folder available to other jobs.
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- src\\dist
|
|
||||||
expire_in: 30 mins
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
- schedule_pipelines
|
|
||||||
|
|
||||||
zip_py2:
|
|
||||||
stage: pack
|
|
||||||
tags:
|
|
||||||
- windows7
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
- schedule_pipelines
|
|
||||||
dependencies:
|
|
||||||
- build_py2
|
|
||||||
script:
|
|
||||||
- cd scripts
|
|
||||||
- '%PYTHON2% prepare_zipversion.py'
|
|
||||||
- cd ..
|
|
||||||
- move src\music_dl.zip music_dl_py2.zip
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- music_dl_py2.zip
|
|
Loading…
x
Reference in New Issue
Block a user