music-dl/.gitlab-ci.yml

55 lines
1.3 KiB
YAML
Raw Normal View History

2018-12-29 09:09:25 -06:00
# Declare some variables dependent on the operating system where the runner is installed.
2018-12-28 20:07:56 -06:00
variables:
2018-12-28 20:14:09 -06:00
PYTHON3: "C:\\python37\\python.exe"
2018-12-28 20:59:44 -06:00
PYINSTALLER: "C:\\python37\\scripts\\pyinstaller.exe"
2018-12-29 09:09:25 -06:00
PYTHON2: "C:\\python27\\python.exe"
stages:
2018-12-29 09:20:22 -06:00
- build
2018-12-29 09:09:25 -06:00
python3_version:
2018-12-29 09:20:22 -06:00
type: build
2018-12-28 20:07:56 -06:00
tags:
2018-12-29 09:09:25 -06:00
- windows10
before_script:
2018-12-28 20:48:39 -06:00
- '%PYTHON3% -m pip install --upgrade pip'
- '%PYTHON3% -m pip install --upgrade -r requirements.txt'
2018-12-29 09:09:25 -06:00
script:
2018-12-28 20:07:56 -06:00
- cd src
2018-12-28 20:59:44 -06:00
- '%PYINSTALLER% main.spec'
2018-12-28 20:07:56 -06:00
- cd ..
- cd scripts
2018-12-28 20:48:39 -06:00
- '%PYTHON3% prepare_zipversion.py'
2018-12-28 20:07:56 -06:00
- cd ..
- move src\music_dl.zip music_dl.zip
only:
- master
artifacts:
paths:
- music_dl.zip
name: music_dl
2018-12-29 09:09:25 -06:00
expire_in: 1 day
python2_version:
2018-12-29 09:20:22 -06:00
type: build
2018-12-29 09:09:25 -06:00
tags:
- windows7
before_script:
- '%PYTHON2% -m pip install --upgrade pip'
- '%PYTHON2% -m pip install --upgrade -r requirements.txt'
2018-12-29 09:20:22 -06:00
# Additionally, reinstall the right version of pypubsub (3.3.0).
- '%PYTHON2% -m pip install --upgrade pypubsub==3.3.0'
2018-12-29 09:09:25 -06:00
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
2018-12-29 09:13:19 -06:00
artifacts:
2018-12-29 09:09:25 -06:00
paths:
- music_dl_py2.zip
name: music_dl_py2
2018-12-28 22:03:39 -06:00
expire_in: 1 day