Commit 9e858315 authored by Nils Cedric Holle's avatar Nils Cedric Holle

Nearly complete test and deploy pipeline

parent f0976aee
Pipeline #108761 failed with stages
in 6 minutes and 52 seconds
......@@ -9,13 +9,13 @@ test:
script:
- echo "Test"
- mkdir htmlcov
# - python -m pip install --upgrade pytest coverage
# - python -m pip install --upgrade -r requirements.txt
# - python -m compileall -f .
# - python -m pytest -v
# - python -m coverage run --source "./" --omit "./puzzlestream/test/*" -m pytest
# - python -m coverage report
# - python -m coverage html
- python -m pip install --upgrade pytest coverage
- python -m pip install --upgrade -r requirements.txt
- python -m compileall -f .
- python -m pytest -v
- python -m coverage run --source "./" --omit "./puzzlestream/test/*" -m pytest
- python -m coverage report
- python -m coverage html
artifacts:
paths:
- htmlcov/
......@@ -36,13 +36,6 @@ deploy_production:
- apt-add-repository https://dl.winehq.org/wine-builds/debian/
- apt-get update
- apt-get install wine-stable winehq-stable nsis unzip -y --allow-unauthenticated
- cd standalone-windows
- wget https://git.rwth-aachen.de/puzzlestream/PuzzlestreamStandalone/raw/master/python.zip
- unzip python.zip -d python-windows
- wine python-windows/python.exe -m pip install --upgrade puzzlestream
- makensis installer.nsi
- pyftpsync upload ./Puzzlestream-inst.exe ftps://$FTP_USERNAME:$FTP_PASSWORD@puzzlestream.org
- cd ..
- apt-get install libgl1-mesa-glx -y
- python -m pip install --upgrade -r requirements.txt
- python -m pip install twine pyftpsync sphinx sphinx_rtd_theme
......@@ -53,10 +46,17 @@ deploy_production:
- sphinx-apidoc -o . ../puzzlestream -f -P -M -e
- sphinx-build -b html . _build
# - pyftpsync upload ./_build ftps://$FTP_USERNAME:$FTP_PASSWORD@puzzlestream.org
- cd ..
- cd standalone-windows
- wget https://git.rwth-aachen.de/puzzlestream/PuzzlestreamStandalone/raw/master/python.zip
- unzip python.zip -d python-windows
- wine python-windows/python.exe -m pip install --upgrade puzzlestream
- makensis installer.nsi
- pyftpsync upload ./Puzzlestream-inst.exe ftps://$FTP_USERNAME:$FTP_PASSWORD@puzzlestream.org
artifacts:
paths:
- dist/
- doc/
- doc/_build/
- standalone-windows/Puzzlestream-inst.exe
only:
- tags
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment