Attempt to use a virtual environment every time the CI is building

This commit is contained in:
Manuel Cortez 2020-07-12 20:52:01 -05:00
parent 0a102fecc2
commit a2caaa6449

View File

@ -16,8 +16,10 @@ stages:
- windows10 - windows10
before_script: before_script:
- '&$env:PYTHON3_32 -V' - '&$env:PYTHON3_32 -V'
- '&$env:PYTHON3_32 -m pip install --upgrade pip' - '&$env:PYTHON3_32 -m venv env'
- '&$env:PYTHON3_32 -m pip install --upgrade -r requirements.txt' - 'env\scripts\activate'
- 'python -m pip install --upgrade pip'
- 'python -m pip install --upgrade -r requirements.txt'
test: test:
<<: *configure_environment <<: *configure_environment
@ -26,8 +28,8 @@ test:
- windows10 - windows10
script: script:
- cd src - cd src
- '&$env:PYTHON3_32 -m coverage run run_tests.py' - 'python -m coverage run run_tests.py'
- '&$env:PYTHON3_32 -m coverage report --omit="test*"' - 'python -m coverage report --omit="test*"'
coverage: '/TOTAL.+ ([0-9]{1,3}%)/' coverage: '/TOTAL.+ ([0-9]{1,3}%)/'
only: only:
- master - master
@ -37,12 +39,12 @@ public:
stage: build stage: build
script: script:
- cd src - cd src
- '&$env:PYTHON3_32 setup.py build' - 'python setup.py build'
- '&$env:NSIS installer.nsi' - '&$env:NSIS installer.nsi'
- cd .. - cd ..
- move src\music_dl* . - move src\music_dl* .
- cd scripts - cd scripts
- '&$env:PYTHON3_32 prepare_zipversion.py' - 'python prepare_zipversion.py'
- cd .. - cd ..
- move src\music_dl.zip music_dl.zip - move src\music_dl.zip music_dl.zip
only: only: