-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathappveyor.yml
45 lines (36 loc) · 1.15 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
version: "{build}"
clone_depth: 100
clone_folder: c:\projects\wammu
environment:
matrix:
- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "32"
install:
- appveyor-retry choco install -y InnoSetup
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
# Install Python (from the official .msi of http://python.org) and pip when
# not already installed.
- ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
- "pip install wheel"
# Install python-gammu
- "pip install python-gammu"
- appveyor DownloadFile https://dl.cihar.com/ci/wxPython3.0-win32-3.0.2.0-py27.exe
- wxPython3.0-win32-3.0.2.0-py27.exe /VERYSILENT
- "pip install -r requirements.txt"
- "pip install pypiwin32 py2exe_py2 pytest"
build_script:
# Build the compiled extension
- "python setup.py build"
test_script:
# Run the project tests
- "py.test"
after_test:
# If tests are successful, create binary packages for the project.
- "python setup.py bdist_wheel"
- "python setup.py py2exe"
- iscc wammu.iss
artifacts:
# Archive the generated packages in the ci.appveyor.com build report.
- path: dist\Wammu*.whl
- path: Output\*