forked from LudovicRousseau/PyKCS11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
37 lines (31 loc) · 1.08 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
os: Windows Server 2012 R2
environment:
matrix:
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python27"
cache:
## Cache swig, which we install via AppVeyor.
# The syntax here is <dir-to-cache> -> <invalidated-when-this-file-changes>
# If the appveyor.yml script is changed, then the cache is invalidated.
# https://www.appveyor.com/docs/build-cache/
- C:\ProgramData\chocolatey\bin -> appveyor.yml # swig.exe
- C:\ProgramData\chocolatey\lib -> appveyor.yml # supporting swig Lib files.
install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%;c:\\SoftHSM2\\bin;c:\\SoftHSM2\\lib"
- "SET SOFTHSM2_CONF=C:\\SoftHSM2\\etc\\softhsm2.conf"
- tests\appveyor_install.cmd
build_script:
- python setup.py sdist
- python setup.py bdist
- python setup.py bdist_wininst
- python setup.py bdist_msi
- python setup.py install
- copy /Y src\LowLevel.py PyKCS11\
- copy /Y %PYTHON%\\Lib\\site-packages\\PyKCS11\\* PyKCS11\\
test_script:
- python run_test.py
artifacts:
- path: dist/*
name: PythonPackages