forked from buildbot/buildbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
63 lines (53 loc) · 2.47 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
# AppVeyor CI
# https://www.appveyor.com/docs
environment:
matrix:
# For Python versions available on AppVeyor, see
# http://www.appveyor.com/docs/installed-software#python
- PYTHON: "C:\\Python27"
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python36"
install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "python -c \"import sys; print(sys.prefix)\""
- "python -c \"import sys; print(sys.exec_prefix)\""
- "python -c \"import sys; print(sys.executable)\""
- "python -V -V"
# Twisted requires pywin32 on Windows in order to spawn processes.
- "python -m pip install pypiwin32"
# AppVeyor has SQLite 3.6.21, and Buildbot prefers at least 3.7,
# install third-party SQLite.
#- "%PYTHON%\\python.exe -m pip install pysqlite"
# TODO: There is no binary wheel for pysqlite and building on Windows is
# painful. Let's just substitude sqlite3.dll with never version.
- ps: |
[Net.ServicePointManager]::SecurityProtocol = 'Ssl3, Tls, Tls11, Tls12'
Start-FileDownload 'https://www.sqlite.org/2016/sqlite-dll-win32-x86-3110000.zip'
- "7z x sqlite-dll-win32-x86-3110000.zip"
- "copy /y sqlite3.dll %PYTHON%\\DLLs\\"
- "python -m pip install -r requirements-dev.txt"
- "python -m pip install -e pkg"
- "python -m pip install -e master[tls,test]"
- "python -m pip install -e worker"
- "python -m pip install coverage codecov"
- "python -m pip list"
build: false
test_script:
- "coverage run --rcfile=common/coveragerc -m twisted.trial --reporter=text --rterrors buildbot.test buildbot_worker.test"
on_success:
- "coverage xml --rcfile=common/coveragerc -o coverage.xml -i"
- "codecov"
on_failure:
# Store _trial_temp directory as artifact on build failure.
# See <https://www.appveyor.com/docs/packaging-artifacts#pushing-artifacts-from-scripts>
- ps: |
$root = Resolve-Path _trial_temp;
[IO.Directory]::GetFiles($root.Path, '*.*', 'AllDirectories') | % {
Push-AppveyorArtifact $_ -FileName $_.Substring($root.Path.Length + 1) -DeploymentName trial-log
}
# Uncomment this part if you want to interactively debug tests on AppVeyor.
# This will pause build at the end and setup RDP server.
# Connection details will be printed in the build log.
# For detail see: https://www.appveyor.com/docs/how-to/rdp-to-build-worker
#on_finish:
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))