summaryrefslogtreecommitdiffstats
path: root/appveyor.yml
diff options
context:
space:
mode:
authorCalum Lind <calumlind@gmail.com>2018-06-05 09:59:21 +0100
committerCalum Lind <calumlind@gmail.com>2018-06-05 23:21:12 +0100
commitcbdde7bba5576049b20ba3ce59103cd209a9299b (patch)
tree18addb3d793ad48f2bf9ab54921e1ece87f3c3fc /appveyor.yml
parent4fd51a4ef9d619d5afe3656872d2145d8226051d (diff)
downloaddeluge-cbdde7bba5576049b20ba3ce59103cd209a9299b.tar.gz
deluge-cbdde7bba5576049b20ba3ce59103cd209a9299b.tar.bz2
deluge-cbdde7bba5576049b20ba3ce59103cd209a9299b.zip
[Appveyor] Make win32 build files available as zip
It can be useful to have the build folder available so zip it up for download as an artifact. Although the 7z has an exclude for the installer exe it doesn't seem to be working.
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml50
1 files changed, 29 insertions, 21 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 2b34ec64d..678667ae8 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -28,48 +28,55 @@ install:
throw "There are newer queued builds for this pull request, failing early." }
- "python -m pip install --upgrade pip"
-
- - if NOT DEFINED TOXENV (
- pip install bbfreeze pefile tox pywin32 slimit twisted[tls] chardet mako pyxdg pillow slimit pygame
+ - if defined TOXENV (
+ pip install
+ tox
+ pywin32
)
-
- - if DEFINED TOXENV (
- pip install tox pywin32
+ - if not defined TOXENV (
+ pip install
+ slimit
+ twisted[tls]
+ chardet
+ mako
+ pyxdg
+ pillow
+ slimit
+ setproctitle
+ pywin32
+ pygame
+ bbfreeze
+ pefile
)
+ - echo "Installing pygtk...."
- if not exist pygtk-all-in-one-2.24.2.win32-py2.7.msi (
- ECHO "Downloading pygtk...."
+ echo "Downloading pygtk...."
& appveyor-retry appveyor DownloadFile "https://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.24/pygtk-all-in-one-2.24.2.win32-py2.7.msi"
)
-
- - ECHO "Installing pygtk...."
- cmd: msiexec /i pygtk-all-in-one-2.24.2.win32-py2.7.msi /quiet /qn /norestart TARGETDIR=C:\Python27 INSTALLLEVEL=3
+
+ - echo "Installing openssl...."
- if not exist openssl-1.1.0f-vs2008.7z (
- ECHO "Downloading openssl...."
+ echo "Downloading openssl...."
& appveyor-retry appveyor DownloadFile "https://www.npcglib.org/~stathis/downloads/openssl-1.1.0f-vs2008.7z"
)
-
- - ECHO "Installing openssl...."
- "7z x -oc:\\ -aoa openssl-1.1.0f-vs2008.7z"
- "rename c:\\openssl-1.1.0f-vs2008 openssl-1.1"
- "copy c:\\openssl-1.1\\bin\\libsslMD.dll c:\\openssl-1.1\\bin\\libssl-1_1.dll"
- "copy c:\\openssl-1.1\\bin\\libcryptoMD.dll c:\\openssl-1.1\\bin\\libcrypto-1_1.dll"
+ - echo "Installing libtorrent...."
- if not exist libtorrent.pyd (
- ECHO "Downloading libtorrent...."
+ echo "Downloading libtorrent...."
& appveyor-retry appveyor DownloadFile "https://github.com/doadin/libtorrent/releases/download/1.1.7.test/libtorrent.pyd"
)
-
- - ECHO "Installing libtorrent...."
- "copy /Y libtorrent.pyd c:\\Python27\\Lib\\site-packages\\libtorrent.pyd"
- "SET PATH=%TOXENV%;%PYTHON%;%PYTHON%\\Scripts;c:\\openssl-1.1\\bin;C:\\Program Files (x86)\\NSIS;%PATH%"
- - ECHO "Python Verison"
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
- - ECHO "libtorrent Verison"
- "python -c \"import libtorrent; print(libtorrent.__version__)\""
- - ECHO "OpenSSL Verison"
- openssl version -v
cache:
@@ -84,13 +91,14 @@ test_script:
- if defined TOXENV tox
after_test:
- - if not defined TOXENV python setup.py build
- - if not defined TOXENV python setup.py install
+ - 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
- - if not defined TOXENV makensis %APPVEYOR_BUILD_FOLDER%\\packaging\\win32\\deluge-win32-installer.nsi
+ - if not defined TOXENV makensis deluge-win32-installer.nsi
+ - if not defined TOXENV 7z a deluge-win32.zip build-win32 "-x!*.exe"
artifacts:
+ - path: packaging\win32\deluge-win32.zip
- path: packaging\win32\build-win32\*.exe
#on_success: