source: sasmodels/appveyor.yml @ 02490b3

core_shell_microgelsmagnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 02490b3 was 335271e, checked in by Paul Kienzle <pkienzle@…>, 7 years ago

remove restriction on pytest<4

  • Property mode set to 100644
File size: 3.8 KB
RevLine 
[d810d96]1environment:
2
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 interpreter
5  # See: http://stackoverflow.com/a/13751649/163740
[772e49c]6  # 2018-01-19 PAK: probably irrelevant now that we are using tinycc rather than msvc
[068f7b6]7  #CMD_IN_ENV: "cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd"
[d810d96]8
9  # Workaround for https://github.com/conda/conda-build/issues/636
10  PYTHONIOENCODING: "UTF-8"
11
12  matrix:
13    # Note: Because we have to separate the py2 and py3 components due to compiler version, we have a race condition for non-python packages.
14    # Not sure how to resolve this, but maybe we should be tracking the VS version in the build string anyway?
15    - TARGET_ARCH: "x86"
16      CONDA_PY: "27"
17      PY_CONDITION: "python >=2.7,<3"
18      CONDA_INSTALL_LOCN: "C:\\Miniconda"
19#    - TARGET_ARCH: "x86"
20#      CONDA_PY: "34"
21#      PY_CONDITION: "python >=3.4,<3.5"
22#      CONDA_INSTALL_LOCN: "C:\\Miniconda3"
23    - TARGET_ARCH: "x86"
24      CONDA_PY: "35"
[fefc185]25      PY_CONDITION: "python >=3.5,<3.6"
[d810d96]26      CONDA_INSTALL_LOCN: "C:\\Miniconda35"
27    - TARGET_ARCH: "x64"
28      CONDA_PY: "27"
29      PY_CONDITION: "python >=2.7,<3"
30      CONDA_INSTALL_LOCN: "C:\\Miniconda-x64"
31#    - TARGET_ARCH: "x64"
32#      CONDA_PY: "34"
33#      PY_CONDITION: "python >=3.4,<3.5"
34#      CONDA_INSTALL_LOCN: "C:\\Miniconda3-x64"
35    - TARGET_ARCH: "x64"
36      CONDA_PY: "35"
[fefc185]37      PY_CONDITION: "python >=3.5,<3.6"
[d810d96]38      CONDA_INSTALL_LOCN: "C:\\Miniconda35-x64"
39
40# We always use a 64-bit machine, but can build x86 distributions
41# with the TARGET_ARCH variable (which is used by CMD_IN_ENV).
42platform:
43    - x64
44
45install:
[a69d8cd]46    # Set the CONDA_NPY, although it has no impact on the actual build.
[9c640ff]47    # We need this because of a test within conda-build.
[d810d96]48    - cmd: set CONDA_NPY=19
49
50    # Remove cygwin (and therefore the git that comes with it).
[fefc185]51    # 2018-01-19 PAK: irrelevant since we already pulled the repo
[9c640ff]52    #- cmd: rmdir C:\cygwin /s /q
[d810d96]53
[772e49c]54    # Set the conda path; would be nice to do this
[1f4770c]55    - cmd: path %CONDA_INSTALL_LOCN%\Scripts;%PATH%
[772e49c]56
[d810d96]57    # Use the pre-installed Miniconda for the desired arch
58    #
59    # However, it is really old. So, we need to update some
60    # things before we proceed. That seems to require it being
61    # on the path. So, we temporarily put conda on the path
62    # so that we can update it. Then we remove it so that
63    # we can do a proper activation.
[772e49c]64    - cmd: conda update --yes --quiet conda python
[068f7b6]65    - cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
66    #- cmd: conda config --add channels conda-forge
67    #- cmd: conda config --set show_channel_urls true
68    #- cmd: conda install --yes --quiet obvious-ci
69    # 2018-01-19 PAK: skipping toolchain cython and cffi (these were for pyopencl?)
[335271e]70    - cmd: conda install --yes --quiet numpy scipy matplotlib docutils setuptools pytest
[068f7b6]71    # 2018-01-19 PAK: skipping pyopencl; this would be needed for deploy but maybe not for test
72    #- cmd: conda install --yes --channel conda-forge pyopencl
[772e49c]73    # 2018-01-19 PAK: 3rd party packages might need msvc, so %CMD_IN_ENV% may be needed for pip
[d810d96]74    - cmd: pip install bumps unittest-xml-reporting tinycc
75
76build_script:
77    # Build the project
[068f7b6]78    # 2018-01-19 PAK: maybe need one of this if using msvc?
79    #- "%CMD_IN_ENV% python setup.py build"
80    #- cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd python setup.py build
81    - python setup.py build
[d810d96]82
83test_script:
84    # Run the project tests
[068f7b6]85    # 2018-01-19 PAK: maybe need one of this if using msvc?
86    #- "%CMD_IN_ENV% python -m sasmodels.model_test dll all"
87    #- cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd python -m sasmoels.model_test dll all
[a69d8cd]88    #- python -m sasmodels.model_test dll all
89    #- nosetests -v sasmodels/*.py
[1f991d6]90    #- python -m pytest -v --cache-clear
91    - python setup.py test --pytest-args -v
Note: See TracBrowser for help on using the repository browser.