1 Star 0 Fork 1

maoj66 / ctpwrapper

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.appveyor.yml 4.00 KB
一键复制 编辑 原始数据 按行查看 历史
nooper 提交于 2023-02-21 23:01 . drop 3.7
# https://www.appveyor.com/docs/build-configuration/
# https://packaging.python.org/guides/supporting-windows-using-appveyor/
platform:
- x64
init:
# If there is a newer build queued for the same PR, cancel this one.
# The AppVeyor 'rollout builds' option is supposed to serve the same
# purpose but it is problematic because it tends to cancel builds pushed
# directly to master instead of just PR builds (or the converse).
# credits: JuliaLang developers.
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
clone_folder: C:\projects\ctpwrapper
cache:
# Use the appveyor cache to avoid re-downloading large archives such
# the MKL numpy and scipy wheels mirrored on a rackspace cloud
# container, speed up the appveyor jobs and reduce bandwidth
# usage on our rackspace account.
- '%LocalAppData%\pip\Cache'
image:
- Visual Studio 2019
environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: 'cmd /E:ON /V:ON /C .\extra\appveyor\compiler.cmd'
matrix:
- PYTHON_DIR: "C:\\Python38-x64"
PYTHON: "C:\\Python38-x64\\python"
PYTHON_VERSION: "3.8"
PYTHON_ARCH: "64"
- PYTHON_DIR: "C:\\Python39-x64"
PYTHON: "C:\\Python39-x64\\python"
PYTHON_VERSION: "3.9"
PYTHON_ARCH: "64"
- PYTHON_DIR: "C:\\Python310-x64"
PYTHON: "C:\\Python310-x64\\python"
PYTHON_VERSION: "3.10"
PYTHON_ARCH: "64"
- PYTHON_DIR: "C:\\Python311-x64"
PYTHON: "C:\\Python311-x64\\python"
PYTHON_VERSION: "3.11"
PYTHON_ARCH: "64"
- PYTHON_DIR: "C:\\pypy3"
PYTHON: "C:\\pypy3\\pypy"
PYTHON_ARCH: "64"
PYTHON_PYPY: "pypy3"
PYTHON_VERSION: "3.9"
PYTHON_PYPY_VERSION: "7.3.8"
matrix:
allow_failures:
- PYTHON_PYPY: "pypy3"
build: off
skip_commits:
files:
- ctp/*
- doc/*
- samples/*
- makefile
- docker/*
install:
- ps: If(($env:PYTHON).Contains("pypy3")) { (New-Object Net.WebClient).DownloadFile('https://downloads.python.org/pypy/pypy3.9-v7.3.8-win64.zip', "$env:appveyor_build_folder\pypy3.zip"); 7z x pypy3.zip | Out-Null; move pypy3.9-v7.3.8-win64 C:\pypy3; }
- "SET PATH=%PYTHON_DIR%;%PYTHON_DIR%\\bin;%PYTHON_DIR%\\Scripts;%PATH%"
- ps: If(($env:PYTHON).Contains("pypy3")) { (New-Object Net.WebClient).DownloadFile('https://bootstrap.pypa.io/get-pip.py', "$env:appveyor_build_folder\get-pip.py"); pypy.exe get-pip.py }
# Check that we have the expected version and architecture for Python
- cmd: "%PYTHON% --version"
- "%PYTHON% -c \"import struct; print(struct.calcsize('P') * 8)\"" # show python version
- "%PYTHON% -m pip install -U pip setuptools wheel"
- "%PYTHON% -m pip install -r requirements.txt"
- "%PYTHON% -m pip install pytest"
test_script:
- SET VS90COMNTOOLS=%VS140COMNTOOLS%
- SET VS90COMNTOOLS=%VS150COMNTOOLS%
- "%CMD_IN_ENV% %PYTHON% setup.py build_ext --inplace"
- "%PYTHON% -m pytest -v -s"
# ignore auto publish to pypi.
#build_script:
# - "%CMD_IN_ENV% python setup.py bdist_wheel"
#
#artifacts:
# # bdist_wheel puts your built wheel in the dist directory
# - path: 'dist\*.whl'
# name: wheel
#deploy_script:
# # This step builds your wheels.
# # Again, you only need build.cmd if you're building C extensions for
# # 64-bit Python 3.3/3.4. And you need to use %PYTHON% to get the correct
# # interpreter
# - "echo [pypi] > %USERPROFILE%\\.pypirc"
# - "echo username: nooperpudd >> %USERPROFILE%\\.pypirc"
# - "echo password: %password% >> %USERPROFILE%\\.pypirc"
# - "%CMD_IN_ENV% python setup.py upload"
1
https://gitee.com/maoj66/ctpwrapper.git
git@gitee.com:maoj66/ctpwrapper.git
maoj66
ctpwrapper
ctpwrapper
master

搜索帮助