2018-05-15 02:40:40 +00:00
|
|
|
environment:
|
2019-05-22 17:23:30 +00:00
|
|
|
PYTHON_VERSION: 3.6
|
|
|
|
PYTHON_ARCH: 64
|
|
|
|
PYTHON: "C:\\Python36-x64"
|
2018-05-15 02:40:40 +00:00
|
|
|
APPVEYOR_SAVE_CACHE_ON_ERROR: true
|
|
|
|
|
|
|
|
matrix:
|
2019-05-22 17:23:30 +00:00
|
|
|
- TOXENV: py36
|
2018-05-15 02:40:40 +00:00
|
|
|
|
|
|
|
pull_requests:
|
|
|
|
do_not_increment_build_number: true
|
|
|
|
|
|
|
|
install:
|
2019-05-22 17:23:30 +00:00
|
|
|
# If there is a newer build queued for same PR, cancel this one. Credit: JuliaLang devs
|
2018-10-03 10:22:22 +00:00
|
|
|
- ps:
|
|
|
|
if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
|
|
|
|
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
|
|
|
|
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
|
|
|
|
throw "There are newer queued builds for this pull request, failing early." }
|
2019-05-22 17:23:30 +00:00
|
|
|
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
|
|
|
|
- "python -VV"
|
2018-06-05 08:59:21 +00:00
|
|
|
- if defined TOXENV (
|
2019-05-22 17:23:30 +00:00
|
|
|
python -m pip install tox tox_venv
|
|
|
|
) else (
|
|
|
|
python -m pip install -rrequirements.txt pygame bbfreeze pefile
|
2018-05-15 02:40:40 +00:00
|
|
|
)
|
2019-05-22 17:23:30 +00:00
|
|
|
- "SET PATH=C:\\OpenSSL-v11-Win64\\bin;%PATH%"
|
2018-05-15 02:40:40 +00:00
|
|
|
- openssl version -v
|
2019-05-22 17:23:30 +00:00
|
|
|
- python -m pip install deluge-libtorrent
|
|
|
|
- 'python -c "import libtorrent; print(libtorrent.__version__)"'
|
2018-05-15 02:40:40 +00:00
|
|
|
|
|
|
|
cache:
|
|
|
|
- '%LOCALAPPDATA%\pip\cache'
|
|
|
|
|
|
|
|
build: false
|
|
|
|
|
|
|
|
test_script:
|
|
|
|
- if defined TOXENV tox
|
2018-10-21 18:05:10 +00:00
|
|
|
# Commented out as require GTK3 to create package.
|
|
|
|
# after_test:
|
|
|
|
# - if not defined TOXENV python setup.py build && python setup.py install
|
|
|
|
# - cd %APPVEYOR_BUILD_FOLDER%\\packaging\\win32
|
|
|
|
# - if not defined TOXENV deluge-bbfreeze.py debug
|
2019-05-22 17:23:30 +00:00
|
|
|
# - "SET PATH=C:\\Program Files (x86)\\NSIS;%PATH%"
|
2018-10-21 18:05:10 +00:00
|
|
|
# - if not defined TOXENV makensis deluge-win32-installer.nsi
|
|
|
|
# - if not defined TOXENV 7z a deluge-win32.zip build-win32 "-x!*.exe"
|
2018-05-15 02:40:40 +00:00
|
|
|
|
2018-10-21 18:05:10 +00:00
|
|
|
# artifacts:
|
|
|
|
# - path: packaging\win32\deluge-win32.zip
|
|
|
|
# - path: packaging\win32\build-win32\*.exe
|
2018-05-15 02:40:40 +00:00
|
|
|
|
|
|
|
#on_success:
|
|
|
|
#
|