forked from pywinauto/SWAPY
-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
74 lines (53 loc) · 1.91 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
64
65
66
67
68
69
70
71
72
73
74
# Based on https://github.com/pywinauto/pywinauto
#
# Hint: before committing any changes in the yaml file verify it in
# the yaml online parser: http://yaml-online-parser.appspot.com/
#
# fetch repository as a zip archive
shallow_clone: true # default is "false"
environment:
matrix:
- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "64"
#os:
# - unstable # Unstable worker image with logged in user, desktop and interactive build agent
install:
# Some listings for debug only
#- ECHO "Filesystem root:"
#- ps: "ls \"C:/\""
#- ECHO "Notepad location "
#- ps: "ls C:\\Windows\\System32\\notepad.exe"
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-desktop.ps1'))
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
# Install the build dependencies of the project.
- "%CMD_IN_ENV% pip install -r dev-requirements.txt"
# Install pywinauto from the trunk
- "%CMD_IN_ENV% pip install -e git+https://github.com/pywinauto/pywinauto.git@master#egg=pywinauto-trunk"
# install wxPython
- "%CMD_IN_ENV% powershell ./ci/install.ps1"
# Print python modules
- "%CMD_IN_ENV% pip freeze"
build: off # disable automatic builds
before_build:
# Download sample apps
- "%CMD_IN_ENV% svn checkout https://github.com/pywinauto/pywinauto/trunk/apps ./apps"
# Run unittests
- "%CMD_IN_ENV% python -m unittest discover"
build_script:
# Print python modules again
- "%CMD_IN_ENV% pip freeze"
# Build UI
- "%CMD_IN_ENV% powershell ./ci/build.ps1"
#test_script:
# # Run UI tests
artifacts:
# Archive the generated coverage report in the ci.appveyor.com build report.
- path: swapy*.exe
name: binaries
on_failure:
- "7z a screenshots.zip scr*.jpg"
- "appveyor PushArtifact screenshots.zip"