|
| 1 | +environment: |
| 2 | + |
| 3 | + matrix: |
| 4 | + # For Python versions available on Appveyor, see |
| 5 | + # http://www.appveyor.com/docs/installed-software#python |
| 6 | + # The list here is complete (excluding Python 2.6, which |
| 7 | + # isn't covered by this document) at the time of writing. |
| 8 | + - PYTHON: "C:\\Python35" |
| 9 | + BITS: 32 |
| 10 | + - PYTHON: "C:\\Python35-x64" |
| 11 | + BITS: 64 |
| 12 | + - PYTHON: "C:\\Python36" |
| 13 | + BITS: 32 |
| 14 | + - PYTHON: "C:\\Python36-x64" |
| 15 | + BITS: 64 |
| 16 | + - PYTHON: "C:\\Python37" |
| 17 | + BITS: 32 |
| 18 | + - PYTHON: "C:\\Python37-x64" |
| 19 | + BITS: 64 |
| 20 | + |
| 21 | +install: |
| 22 | + # We need wheel installed to build wheels |
| 23 | + - IF "%BITS%" == "32" SET ARCH=i686 |
| 24 | + - IF "%BITS%" == "64" SET ARCH=x86_64 |
| 25 | + - curl -sSf -o rustup-init.exe https://win.rustup.rs |
| 26 | + - rustup-init.exe --default-host "%ARCH%-pc-windows-gnu" --default-toolchain nightly -y |
| 27 | + - SET PATH=C:\Users\appveyor\.cargo\bin;C:\msys64\mingw%BITS%\bin;%PATH%;C:\msys64\usr\bin |
| 28 | + - rustc -Vv |
| 29 | + - cargo -Vv |
| 30 | + - "%PYTHON%\\python.exe -m pip install wheel" |
| 31 | + - pip install -r requirement-dev.txt --user |
| 32 | + |
| 33 | +build: |
| 34 | + - "build.cmd %PYTHON%\\python.exe compile.py build" |
| 35 | + |
| 36 | +test_script: |
| 37 | + # Put your test command here. |
| 38 | + # If you don't need to build C extensions on 64-bit Python 3.3 or 3.4, |
| 39 | + # you can remove "build.cmd" from the front of the command, as it's |
| 40 | + # only needed to support those cases. |
| 41 | + # Note that you must use the environment variable %PYTHON% to refer to |
| 42 | + # the interpreter you're using - Appveyor does not do anything special |
| 43 | + # to put the Python version you want to use on PATH. |
| 44 | + - "build.cmd %PYTHON%\\python.exe setup.py test" |
| 45 | + |
| 46 | +after_test: |
| 47 | + # This step builds your wheels. |
| 48 | + # Again, you only need build.cmd if you're building C extensions for |
| 49 | + # 64-bit Python 3.3/3.4. And you need to use %PYTHON% to get the correct |
| 50 | + # interpreter |
| 51 | + - "build.cmd %PYTHON%\\python.exe setup.py bdist_wheel" |
| 52 | + |
| 53 | +artifacts: |
| 54 | + # bdist_wheel puts your built wheel in the dist directory |
| 55 | + - path: dist\* |
0 commit comments