music-dl/.gitlab-ci.yml

55 lines
1.3 KiB
YAML
Raw Normal View History

2018-12-29 16:09:25 +01:00
# Declare some variables dependent on the operating system where the runner is installed.
2018-12-29 03:07:56 +01:00
variables:
2018-12-29 03:14:09 +01:00
PYTHON3: "C:\\python37\\python.exe"
2018-12-29 03:59:44 +01:00
PYINSTALLER: "C:\\python37\\scripts\\pyinstaller.exe"
2018-12-29 16:09:25 +01:00
PYTHON2: "C:\\python27\\python.exe"
stages:
- build_py3
- build_py2
python3_version:
type: build_python3
2018-12-29 03:07:56 +01:00
tags:
2018-12-29 16:09:25 +01:00
- windows10
before_script:
2018-12-29 03:48:39 +01:00
- '%PYTHON3% -m pip install --upgrade pip'
- '%PYTHON3% -m pip install --upgrade -r requirements.txt'
2018-12-29 16:09:25 +01:00
script:
2018-12-29 03:07:56 +01:00
- cd src
2018-12-29 03:59:44 +01:00
- '%PYINSTALLER% main.spec'
2018-12-29 03:07:56 +01:00
- cd ..
- cd scripts
2018-12-29 03:48:39 +01:00
- '%PYTHON3% prepare_zipversion.py'
2018-12-29 03:07:56 +01:00
- cd ..
- move src\music_dl.zip music_dl.zip
only:
- master
artifacts:
paths:
- music_dl.zip
name: music_dl
2018-12-29 16:09:25 +01:00
expire_in: 1 day
python2_version:
type: build_py2
tags:
- windows7
before_script:
- '%PYTHON2% -m pip install --upgrade pip'
- '%PYTHON2% -m pip install --upgrade -r requirements.txt'
# Additionally, install py2exe for Py2 as it is not listed in requirements.
- '%PYTHON2% -m pip install --upgrade py2exe'
script:
- cd src
- '%PYTHON2% setup.py py2exe'
- cd ..
- cd scripts
- '%PYTHON2% prepare_zipversion.py'
- cd ..
- move src\music_dl.zip music_dl_py2.zip
only:
- master
artifacts:
paths:
- music_dl_py2.zip
name: music_dl_py2
2018-12-29 05:03:39 +01:00
expire_in: 1 day