1environment:
2
3  matrix:
4    - TARGET_ARCH: x86
5      PYTHON_VERSION: 2.7
6      CONDA_INSTALL_LOCN: C:\\Miniconda36
7      PYTHON_LOCN: C:\\Python27
8
9    - TARGET_ARCH: x64
10      PYTHON_VERSION: 2.7
11      CONDA_INSTALL_LOCN: C:\\Miniconda36-x64
12      PYTHON_LOCN: C:\\Python27-x64
13
14    - TARGET_ARCH: x86
15      PYTHON_VERSION: 3.5
16      CONDA_INSTALL_LOCN: C:\\Miniconda36
17      PYTHON_LOCN: C:\\Python35
18
19    - TARGET_ARCH: x64
20      PYTHON_VERSION: 3.5
21      CONDA_INSTALL_LOCN: C:\\Miniconda36-x64
22      PYTHON_LOCN: C:\\Python35-x64
23
24    - TARGET_ARCH: x86
25      PYTHON_VERSION: 3.6
26      CONDA_INSTALL_LOCN: C:\\Miniconda36
27      PYTHON_LOCN: C:\\Python36
28
29    - TARGET_ARCH: x64
30      PYTHON_VERSION: 3.6
31      CONDA_INSTALL_LOCN: C:\\Miniconda36-x64
32      PYTHON_LOCN: C:\\Python36-x64
33
34    - TARGET_ARCH: x86
35      PYTHON_VERSION: 3.7
36      CONDA_INSTALL_LOCN: C:\\Miniconda37
37      PYTHON_LOCN: C:\\Python37
38
39    - TARGET_ARCH: x64
40      PYTHON_VERSION: 3.7
41      CONDA_INSTALL_LOCN: C:\\Miniconda37-x64
42      PYTHON_LOCN: C:\\Python37-x64
43
44    - TARGET_ARCH: x86
45      PYTHON_VERSION: 3.8
46      CONDA_INSTALL_LOCN: C:\\Miniconda38
47      PYTHON_LOCN: C:\\Python38
48
49    - TARGET_ARCH: x64
50      PYTHON_VERSION: 3.8
51      CONDA_INSTALL_LOCN: C:\\Miniconda38-x64
52      PYTHON_LOCN: C:\\Python38-x64
53
54platform:
55    - x64
56
57install:
58    # Activate `conda`
59    - cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
60
61    # Configure conda
62    - cmd: conda config --add channels conda-forge
63    - cmd: conda config --set show_channel_urls true
64    - cmd: conda config --set always_yes yes --set changeps1 no
65
66    # Create conda environment
67    - cmd: conda create -n test mpir "mpfr>=4" mpc
68    - cmd: call activate test
69
70    # Setup python environment
71    - cmd: set "PATH=%PYTHON_LOCN%;%PYTHON_LOCN%\\Scripts;%PATH%"
72
73# Skip .NET project specific build phase.
74build: off
75
76test_script:
77    - cmd: python setup.py install build_ext --mpir -I%CONDA_PREFIX%\Library\include -L%CONDA_PREFIX%\Library\lib
78    - cmd: cd test && python runtests.py
79    - cmd: cd ..
80
81after_test:
82    - cmd: python setup.py bdist_wheel
83
84artifacts:
85    - path: dist\*
86