1 Star 0 Fork 0

liuqiang123456789/brian2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
appveyor.yml 4.93 KB
一键复制 编辑 原始数据 按行查看 历史
# CI configuration for Windows tests on appveyor
# Based on Olivier Grisel's python-appveyor-demo
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 .\\dev\\continuous-integration\\appveyor\\run_with_env.cmd"
matrix:
- PYTHON: "C:\\Miniconda37-x64"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "64"
platform: x64
STANDALONE: "TRUE"
FLOAT_DTYPE_32: "TRUE"
- PYTHON: "C:\\Miniconda37"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "32"
platform: x86
STANDALONE: "TRUE"
- PYTHON: "C:\\Miniconda"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "32"
platform: x86
STANDALONE: "FALSE"
CONDA_PY: "27"
DO_CONDA_BUILD: "TRUE"
SPLIT_RUN: "FALSE"
- PYTHON: "C:\\Miniconda-x64"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "64"
platform: x64
STANDALONE: "FALSE"
CONDA_PY: "27"
DO_CONDA_BUILD: "TRUE"
SPLIT_RUN: "FALSE"
- PYTHON: "C:\\Miniconda37"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "32"
platform: x86
STANDALONE: "FALSE"
CONDA_PY: "37"
DO_CONDA_BUILD: "TRUE"
SPLIT_RUN: "1"
- PYTHON: "C:\\Miniconda37"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "32"
platform: x86
STANDALONE: "FALSE"
DO_CONDA_BUILD: "FALSE"
SPLIT_RUN: "2"
- PYTHON: "C:\\Miniconda37-x64"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "64"
platform: x64
STANDALONE: "FALSE"
CONDA_PY: "37"
DO_CONDA_BUILD: "TRUE"
SPLIT_RUN: "1"
- PYTHON: "C:\\Miniconda37-x64"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "64"
platform: x64
STANDALONE: "FALSE"
DO_CONDA_BUILD: "FALSE"
SPLIT_RUN: "2"
- PYTHON: "C:\\Miniconda37-x64"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "64"
platform: x64
STANDALONE: "FALSE"
CONDA_PY: "37"
DO_CONDA_BUILD: "FALSE"
FLOAT_DTYPE_32: "TRUE"
SPLIT_RUN: "1"
- PYTHON: "C:\\Miniconda37-x64"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "64"
platform: x64
STANDALONE: "FALSE"
DO_CONDA_BUILD: "FALSE"
FLOAT_DTYPE_32: "TRUE"
SPLIT_RUN: "2"
- PYTHON: "C:\\Miniconda37-x64"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "64"
platform: x64
STANDALONE: "TRUE"
install:
# Add the paths
- 'set PATH=%PYTHON%;%PYTHON%\Library\bin;%PYTHON%\Scripts;%PATH%'
# Check that we have the expected version and architecture for Python
- 'python --version'
- 'python -c "import struct; print(struct.calcsize(''P'') * 8)"'
# Use the conda-forge channel
- 'conda config --append channels conda-forge'
# Install the build dependencies of the project via conda
- 'appveyor-retry conda update -c conda-forge --yes conda'
- 'set PYTHON_PACKAGES=pytest "sympy>=1.1.1" pyparsing jinja2 ipython setuptools cython "py-cpuinfo>=3" "gsl>1.15" future sphinx'
# Install the weave package for Python 2
- 'if "%PYTHON_VERSION:~0,1%" == "2" set PYTHON_PACKAGES=%PYTHON_PACKAGES% weave'
# weave 0.16 is the only available version for 32 bit Windows, and it is not compatible with numpy 0.16
- 'if "%platform%" == "x86" (set PYTHON_PACKAGES=%PYTHON_PACKAGES% "numpy<1.16") else (set PYTHON_PACKAGES=%PYTHON_PACKAGES% numpy)'
# Create the test environment
- 'appveyor-retry conda install --quiet --yes python=%PYTHON_VERSION% %PYTHON_PACKAGES%'
# For faster tests, only build conda packages for the master branch or pull requests
- 'if "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" if not "%APPVEYOR_REPO_BRANCH%" == "master" set DO_CONDA_BUILD=FALSE'
build: false # Not a C# project, build stuff at the test step instead.
test_script:
# Run the test suite
- '%CMD_IN_ENV% python -c "import sys; print(sys.executable)"'
- '%CMD_IN_ENV% python setup.py install --single-version-externally-managed --record=record.txt'
- 'set SRC_DIR=%CD%'
- 'cd \'
# Since "CMD_IN_ENV" assumes we are in the source directory we cannot use it
# here. We therefore copy its content and use the correct path
- 'cmd /E:ON /V:ON /C %SRC_DIR%\dev\continuous-integration\appveyor\run_with_env.cmd python %SRC_DIR%\dev\continuous-integration\run_test_suite.py'
after_test:
- 'IF "%DO_CONDA_BUILD%" == "TRUE" (
conda config --set restore_free_channel true &&
appveyor-retry pip install wheel &&
cd %SRC_DIR% &&
%CMD_IN_ENV% python setup.py bdist_wheel &&
appveyor-retry %CMD_IN_ENV% conda install --yes --quiet conda-build pip &&
appveyor-retry %CMD_IN_ENV% conda install --yes --quiet anaconda-client &&
%CMD_IN_ENV% conda build --quiet -c conda-forge dev\conda-recipe
)'
artifacts:
# Archive the generated conda package in the ci.appveyor.com build report.
- path: '*.tar.bz2'
name: conda package
- path: dist\*
name: PyPI binaries
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liuqiang123456789/brian2.git
git@gitee.com:liuqiang123456789/brian2.git
liuqiang123456789
brian2
brian2
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385