forked from LudovicRousseau/PyKCS11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
46 lines (39 loc) · 1.49 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
# https://packaging.python.org/guides/supporting-windows-using-appveyor/
os: Windows Server 2012 R2
environment:
matrix:
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python37-x64"
- 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"
# We need wheel installed to build wheels
- "%PYTHON%\\python.exe -m pip install wheel"
- test\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 bdist_wheel
- python setup.py install
- copy /Y src\LowLevel.py PyKCS11\
- pip show PyKCS11 | python -c "import sys; print([line for line in sys.stdin if line.startswith('Location:')][0].split(':',1)[1].strip())" > _tmp
- set /p PYKCS11_INSTALL_DIR=<_tmp
- copy /Y %PYKCS11_INSTALL_DIR%\PyKCS11\* PyKCS11\
- del _tmp
test_script:
- python run_test.py
artifacts:
- path: dist/*
name: PythonPackages