1
+ max_jobs : 5
2
+ build :
3
+ parallel : true
4
+ verbosity : minimal
5
+ skip_branch_with_pr : true
6
+
1
7
environment :
2
8
global :
3
- # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
4
- # /E:ON and /V:ON options are not enabled in the batch script intepreter
5
- # See: http://stackoverflow.com/a/13751649/163740
6
- # CMD_IN_ENV: "cmd /E:ON /V:ON /C %APPVEYOR_BUILD_FOLDER%\\ci\\appveyor\\run_with_env.cmd"
7
9
PYTHONUNBUFFERED : 1
8
- OPENSSL_VER : 1.1.0h
9
10
SYSTEM_LIBSSH : 1
10
11
PYPI_USER :
11
12
secure : 2m0jy6JD/R9RExIosOT6YA==
@@ -40,8 +41,12 @@ install:
40
41
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
41
42
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
42
43
throw "There are newer queued builds for this pull request, failing early." }
43
- - ECHO "Installed SDKs:"
44
- - ps : " ls \" C:/Program Files/Microsoft SDKs/Windows\" "
44
+ - set OPENSSL_DIR="C:\OpenSSL-v11-Win%PYTHON_ARCH%"
45
+ - set VCLIBDIR=%WINDIR%\System32
46
+ - cp %VCLIBDIR%/vcruntime*.dll ssh/
47
+ - cp %VCLIBDIR%/msvcp*.dll ssh/
48
+ - cp %VCLIBDIR%/msvcr*.dll ssh/
49
+ - cp %OPENSSL_DIR%/bin/*.dll ssh/
45
50
46
51
# Prepend newly installed Python to the PATH of this build (this cannot be
47
52
# done from inside the powershell script as it would require to restart
@@ -51,57 +56,42 @@ install:
51
56
# Check that we have the expected version and architecture for Python
52
57
- " python --version"
53
58
- " python -c \" import struct; print(struct.calcsize('P') * 8)\" "
54
-
55
- # Upgrade to the latest version of pip to avoid it displaying warnings
56
- # about it being out of date.
57
- # - "pip install --disable-pip-version-check --user --upgrade pip"
58
-
59
- # Install the build dependencies of the project. If some dependencies contain
60
- # compiled extensions and are not provided as pre-built wheel packages,
61
- # pip will build them from source using the MSVC compiler matching the
62
- # target Python version and architecture
63
- - " %CMD_IN_ENV% pip install -r requirements_dev.txt"
64
- - " %CMD_IN_ENV% pip install -U wheel setuptools twine"
59
+ - pip install -U wheel setuptools twine cython
65
60
66
61
# .c files need to be generated on Windows to handle platform
67
62
# specific code.
68
63
# Fix version used by versioneer to current git tag so the generated .c files
69
64
# do not cause a version change.
70
65
- python ci/appveyor/fix_version.py .
71
66
- mv -f .git .git.bak
72
- - IF NOT "%PYTHON_VERSION%" == "2.7" (
73
- 7z x ci\appveyor\zlib1211.zip
74
- appveyor DownloadFile https://indy.fulgan.com/SSL/Archive/Experimental/openssl-%OPENSSL_VER%-x%PYTHON_ARCH%-VC2017.zip
75
- appveyor DownloadFile https://web.mit.edu/kerberos/dist/kfw/4.1/kfw-4.1-src.zip
76
- 7z x ci\appveyor\kfw-4.1-src.zip
77
- 7z x openssl-%OPENSSL_VER%-x%PYTHON_ARCH%-VC2017.zip
78
- cp openssl-%OPENSSL_VER%-x%PYTHON_ARCH%-VC2017\libssl-1_1-x%PYTHON_ARCH%.dll ssh\ || cp openssl-%OPENSSL_VER%-x%PYTHON_ARCH%-VC2017\libssl-1_1.dll ssh\
79
- cp openssl-%OPENSSL_VER%-x%PYTHON_ARCH%-VC2017\libcrypto-1_1-x%PYTHON_ARCH%.dll ssh\ || cp openssl-%OPENSSL_VER%-x%PYTHON_ARCH%-VC2017\libcrypto-1_1.dll ssh\
80
- )
67
+ - 7z x ci\appveyor\zlib1211.zip
68
+ # - appveyor DownloadFile https://web.mit.edu/kerberos/dist/kfw/4.1/kfw-4.1-src.zip
69
+ # - 7z x kfw-4.1-src.zip
81
70
- ps : ls ssh
82
71
- ps : ls
83
72
84
73
build_script :
85
- - " %CMD_IN_ENV% ci\\ appveyor\\ build_krb.bat"
86
- - " %CMD_IN_ENV% ci\\ appveyor\\ build_zlib.bat"
87
- - " %CMD_IN_ENV% ci\\ appveyor\\ build_ssh.bat"
74
+ # - ci\\appveyor\\build_krb.bat
75
+ - ci\\appveyor\\build_zlib.bat
76
+ - ci\\appveyor\\build_ssh.bat
77
+ - ps : ls src/src/Release
88
78
- rm -f ssh/*.c
89
- - " %CMD_IN_ENV% python setup.py build_ext -I ci/appveyor/include"
90
- - " %CMD_IN_ENV% python setup.py build"
91
- - " %CMD_IN_ENV% python setup.py install"
79
+ - python -V
80
+ - python setup.py build_ext
81
+ - python setup.py build
82
+ - python setup.py install
83
+ - ps : ls ssh
92
84
93
85
test_script :
94
86
- cd dist
95
87
- python ..\\ci\\appveyor\\import_test.py
96
88
- cd ..
97
89
98
90
after_test :
99
- # If tests are successful, create binary packages for the project.
100
- - " %CMD_IN_ENV% python setup.py bdist_wheel"
91
+ - python setup.py bdist_wheel
101
92
- mv dist/* .
102
93
103
94
artifacts :
104
- # Archive the generated packages in the ci.appveyor.com build report.
105
95
- path : " *.whl"
106
96
107
97
deploy_script :
0 commit comments