Skip to content

Commit bed23d0

Browse files
committed
add appveyor
1 parent 4d44b93 commit bed23d0

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

.appveyor.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
version: 1.3.{build}
2+
3+
environment:
4+
matrix:
5+
- python: 27
6+
- python: 27-x64
7+
- python: 35
8+
- python: 35-x64
9+
- python: 36
10+
- python: 36-x64
11+
12+
install:
13+
- SET PATH=C:\\Python%PYTHON%;c:\\Python%PYTHON%\\scripts;%PATH%
14+
- python -m pip.__main__ install -U pip wheel setuptools
15+
- pip install -r requirements-test.txt
16+
17+
build: off
18+
build_script:
19+
# configure version
20+
- ps: >-
21+
If ($env:APPVEYOR_REPO_TAG -Eq "true" ) {
22+
$version = "$env:APPVEYOR_REPO_TAG_NAME"
23+
} Else {
24+
$version = "$env:APPVEYOR_BUILD_VERSION.dev0"
25+
}
26+
$version | Set-Content version.txt
27+
- python setup.py build bdist_wheel
28+
- ps: Get-ChildItem dist\*.whl | % { pip install $_.FullName }
29+
30+
test: off
31+
test_script:
32+
- pip list
33+
- py.test -v tests
34+
- ps: Get-ChildItem dist\*.whl | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.*
33
!.editorconfig
44
!.travis*
5+
!.appveyor*
56
!.git*
67

78
# Python

README.rst

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ python-xmlsec
33

44
.. image:: https://travis-ci.org/mehcode/python-xmlsec.png?branch=master
55
:target: https://travis-ci.org/mehcode/python-xmlsec
6+
.. image:: https://ci.appveyor.com/api/projects/status/20rtt2wv96gag9cy?svg=true
7+
:target: https://ci.appveyor.com/project/bgaifullin/python-xmlsec
68
.. image:: https://img.shields.io/pypi/v/xmlsec.svg
79
:target: https://pypi.python.org/pypi/xmlsec
810
.. image:: https://img.shields.io/badge/docs-latest-green.svg

0 commit comments

Comments
 (0)