2018-01-27 19:11:30 +01:00
|
|
|
environment:
|
|
|
|
PYTHON: "C:\\Python35"
|
|
|
|
PYTHON_VERSION: 3.5
|
|
|
|
PYTHON_ARCH: "32"
|
|
|
|
|
|
|
|
init:
|
|
|
|
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
|
|
|
|
|
|
|
|
install:
|
|
|
|
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
|
|
|
|
- "python -m pip install -U pip setuptools"
|
2018-05-07 00:51:36 +02:00
|
|
|
- "pip install -r requirements-dev.txt -r requirements.txt"
|
2018-07-09 23:26:31 +02:00
|
|
|
- "pip install cx_freeze"
|
2018-07-12 23:19:32 +02:00
|
|
|
- "git describe --tags --dirty --always"
|
2018-01-27 19:11:30 +01:00
|
|
|
|
|
|
|
test_script:
|
|
|
|
- "pip install -e ."
|
|
|
|
|
|
|
|
|
|
|
|
after_test:
|
2018-05-07 00:51:36 +02:00
|
|
|
- "mkdir svtplay-dl"
|
2018-07-12 23:19:32 +02:00
|
|
|
- "python setversion.py"
|
2018-07-09 23:26:31 +02:00
|
|
|
- "python %PYTHON%\\Scripts\\cxfreeze --include-modules=queue,idna.idnadata --target-dir=svtplay-dl bin/svtplay-dl"
|
2018-05-08 23:34:54 +02:00
|
|
|
- "svtplay-dl\\svtplay-dl.exe --version"
|
|
|
|
- "7z.exe a -tzip svtplay-dl.zip svtplay-dl"
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: svtplay-dl.zip
|
|
|
|
name: svtplay-dl
|
2018-01-27 19:11:30 +01:00
|
|
|
|
2018-07-13 23:30:12 +02:00
|
|
|
-
|
|
|
|
branches:
|
|
|
|
only: master
|
|
|
|
appveyor_repo_tag: true
|
|
|
|
deploy:
|
|
|
|
provider: FTP
|
|
|
|
protocol: sftp
|
|
|
|
host: srv.svtplay-dl.se
|
|
|
|
username: web
|
|
|
|
password:
|
|
|
|
secure: wdvTOWRd6TXhtgfSPmYea8XOT/5sc4s3xhELbowqT58=
|
|
|
|
folder: /var/www/download/$(APPVEYOR_REPO_TAG_NAME)/
|
|
|
|
artifact: svtplay-dl.zip
|
|
|
|
|
2018-01-27 19:11:30 +01:00
|
|
|
build: off
|