forked from JohnDoee/deluge-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
63 lines (56 loc) · 1.65 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
image:
- ubuntu1804
- Visual Studio 2015
environment:
matrix:
- PY_DIR: "C:\\Python27"
PYTHON: "2.7"
DELUGE_VERSION: 1
- PY_DIR: "C:\\Python27"
PYTHON: "2.7"
DELUGE_VERSION: 2
- PY_DIR: "C:\\Python36"
PYTHON: "3.6"
DELUGE_VERSION: 1
- PY_DIR: "C:\\Python36"
PYTHON: "3.6"
DELUGE_VERSION: 2
for:
-
matrix:
only:
- DELUGE_VERSION: 1
install:
- cmd: choco install deluge --version=1.3.15
- sh: sudo apt-get install deluged -y
-
matrix:
only:
- DELUGE_VERSION: 2
install:
- python --version
- cmd: appveyor DownloadFile http://download.deluge-torrent.org/archive/2.0/deluge-2.0b1-win32-setup.exe
- cmd: deluge-2.0b1-win32-setup.exe /S
- sh: sudo add-apt-repository ppa:deluge-team/develop -y
- sh: sudo apt-get -qq update
- sh: sudo apt-get install deluged -y
stack: python %PYTHON%
build: off
init:
- cmd: set PATH=%PY_DIR%;%PY_DIR%\Scripts;%PATH%
before_test:
# For some reason we have to create the logfile first
- ps: "if ($isWindows) {New-Item -Path 'C:\\Users\\appveyor\\AppData\\Roaming\\deluge' -ItemType Directory}"
- cmd: '"c:\Program Files (x86)\Deluge\deluged.exe" --version'
- ps: "if ($isWindows) {Start-Process \"c:\\Program Files (x86)\\Deluge\\deluged.exe\"}"
- sh: /usr/bin/deluged --version
- sh: /usr/bin/deluged
- python --version
- pip install -U pytest
# Give deluged a chance to start
- ps: "Start-Sleep -s 10"
test_script:
- pytest
on_failure:
# Print the deluged log file to help debug problems
- cmd: "type C:\\Users\\appveyor\\AppData\\Roaming\\deluge\\deluged.log"