[d810d96] | 1 | environment: |
---|
| 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 |
---|
| 6 | CMD_IN_ENV: "cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd" |
---|
| 7 | |
---|
| 8 | # Workaround for https://github.com/conda/conda-build/issues/636 |
---|
| 9 | PYTHONIOENCODING: "UTF-8" |
---|
| 10 | |
---|
| 11 | matrix: |
---|
| 12 | # Note: Because we have to separate the py2 and py3 components due to compiler version, we have a race condition for non-python packages. |
---|
| 13 | # Not sure how to resolve this, but maybe we should be tracking the VS version in the build string anyway? |
---|
| 14 | - TARGET_ARCH: "x86" |
---|
| 15 | CONDA_PY: "27" |
---|
| 16 | PY_CONDITION: "python >=2.7,<3" |
---|
| 17 | CONDA_INSTALL_LOCN: "C:\\Miniconda" |
---|
| 18 | # - TARGET_ARCH: "x86" |
---|
| 19 | # CONDA_PY: "34" |
---|
| 20 | # PY_CONDITION: "python >=3.4,<3.5" |
---|
| 21 | # CONDA_INSTALL_LOCN: "C:\\Miniconda3" |
---|
| 22 | - TARGET_ARCH: "x86" |
---|
| 23 | CONDA_PY: "35" |
---|
| 24 | PY_CONDITION: "python >=3.5" |
---|
| 25 | CONDA_INSTALL_LOCN: "C:\\Miniconda35" |
---|
| 26 | - TARGET_ARCH: "x64" |
---|
| 27 | CONDA_PY: "27" |
---|
| 28 | PY_CONDITION: "python >=2.7,<3" |
---|
| 29 | CONDA_INSTALL_LOCN: "C:\\Miniconda-x64" |
---|
| 30 | # - TARGET_ARCH: "x64" |
---|
| 31 | # CONDA_PY: "34" |
---|
| 32 | # PY_CONDITION: "python >=3.4,<3.5" |
---|
| 33 | # CONDA_INSTALL_LOCN: "C:\\Miniconda3-x64" |
---|
| 34 | - TARGET_ARCH: "x64" |
---|
| 35 | CONDA_PY: "35" |
---|
| 36 | PY_CONDITION: "python >=3.5" |
---|
| 37 | CONDA_INSTALL_LOCN: "C:\\Miniconda35-x64" |
---|
| 38 | |
---|
| 39 | # We always use a 64-bit machine, but can build x86 distributions |
---|
| 40 | # with the TARGET_ARCH variable (which is used by CMD_IN_ENV). |
---|
| 41 | platform: |
---|
| 42 | - x64 |
---|
| 43 | |
---|
| 44 | install: |
---|
| 45 | # Set the CONDA_NPY, although it has no impact on the actual build. We need this because of a test within conda-build. |
---|
| 46 | - cmd: set CONDA_NPY=19 |
---|
| 47 | |
---|
| 48 | # Remove cygwin (and therefore the git that comes with it). |
---|
| 49 | - cmd: rmdir C:\cygwin /s /q |
---|
| 50 | |
---|
| 51 | # Use the pre-installed Miniconda for the desired arch |
---|
| 52 | # |
---|
| 53 | # However, it is really old. So, we need to update some |
---|
| 54 | # things before we proceed. That seems to require it being |
---|
| 55 | # on the path. So, we temporarily put conda on the path |
---|
| 56 | # so that we can update it. Then we remove it so that |
---|
| 57 | # we can do a proper activation. |
---|
| 58 | - cmd: set "OLDPATH=%PATH%" |
---|
| 59 | - cmd: set "PATH=%CONDA_INSTALL_LOCN%\\Scripts;%CONDA_INSTALL_LOCN%\\Library\\bin;%PATH%" |
---|
| 60 | - cmd: conda update --yes --quiet conda python |
---|
| 61 | - cmd: set "PATH=%OLDPATH%" |
---|
| 62 | - cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat |
---|
| 63 | |
---|
[1258e32] | 64 | - cmd: conda config --add channels conda-forge |
---|
| 65 | - cmd: conda config --set show_channel_urls true |
---|
[e81d79b] | 66 | - cmd: conda update --yes --quiet conda |
---|
| 67 | - cmd: conda install --yes --quiet obvious-ci |
---|
[d810d96] | 68 | - cmd: conda install --yes --quiet numpy toolchain scipy cython cffi |
---|
[e81d79b] | 69 | #- cmd: conda install --yes --channel conda-forge pyopencl |
---|
[d810d96] | 70 | - cmd: pip install bumps unittest-xml-reporting tinycc |
---|
| 71 | |
---|
| 72 | build_script: |
---|
| 73 | # Build the project |
---|
| 74 | - "%CMD_IN_ENV% python setup.py build" |
---|
| 75 | |
---|
| 76 | test_script: |
---|
| 77 | # Run the project tests |
---|
[e81d79b] | 78 | - "%CMD_IN_ENV% python -m sasmodels.model_test dll all" |
---|