Skip to content

Commit

Permalink
[appveyor.yml] Update appveyor yaml file
Browse files Browse the repository at this point in the history
Change the appveyor yaml spec to address #13. We use the recommendation
from
https://packaging.python.org/guides/supporting-windows-using-appveyor/.
  • Loading branch information
echu committed Nov 17, 2018
1 parent f2854d7 commit affcd75
Showing 1 changed file with 22 additions and 61 deletions.
83 changes: 22 additions & 61 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,20 @@
# Attempts to build ECOS in Python 2.7 and Python 3.3 on both 64- and
# 32-bit Windows using Python wheels.
# The script is mostly taken from https://github.com/ogrisel/python-appveyor-demo
# Attempts to build ECOS in Python 2 and Python 3 on Windows
#
# https://packaging.python.org/guides/supporting-windows-using-appveyor/
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 .\\appveyor\\run_with_env.cmd"

matrix:
- PYTHON: "C:\\Python27_32"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "32"
CONDA_PY: "27"
CONDA_NPY: "19"

- PYTHON: "C:\\Python27_64"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "64"
CONDA_PY: "27"
CONDA_NPY: "19"

- PYTHON: "C:\\Python34_32"
PYTHON_VERSION: "3.4.x"
PYTHON_ARCH: "32"
CONDA_PY: "34"
CONDA_NPY: "19"

- PYTHON: "C:\\Python34_64"
PYTHON_VERSION: "3.4.x"
PYTHON_ARCH: "64"
CONDA_PY: "34"
CONDA_NPY: "19"

- PYTHON: "C:\\Python36_32"
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "32"
CONDA_PY: "36"
CONDA_NPY: "19"

- PYTHON: "C:\\Python36_64"
PYTHON_VERSION: "3.6.x"
PYTHON_ARCH: "64"
CONDA_PY: "36"
CONDA_NPY: "19"
- PYTHON: "C:\\Python27"
- PYTHON: "C:\\Python33"
- PYTHON: "C:\\Python34"
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python27-x64"
- PYTHON: "C:\\Python33-x64"
DISTUTILS_USE_SDK: "1"
- PYTHON: "C:\\Python34-x64"
DISTUTILS_USE_SDK: "1"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36-x64"

install:
# initialize the submodule
Expand All @@ -55,31 +26,21 @@ install:
- ECHO "Installed SDKs:"
- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""

# Install Python (from the official .msi of http://python.org) and pip when
# not already installed.
- "powershell ./appveyor/install.ps1"

# Prepend newly installed Python to the PATH of this build (this cannot be
# done from inside the powershell script as it would require to restart
# the parent CMD process).
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"

# Check that we have the expected version and architecture for Python
- ps: "gcm python"
- "python --version"
- "python -c \"import sys; print(sys.path)\""
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
# install needd dependencies
- "%PYTHON%\\python.exe -m pip install wheel"

build: false # Not a C# project, build stuff at the test step instead.

test_script:
# Build the compiled extension and run the project tests
- "%CMD_IN_ENV% conda build .\\appveyor\\conda-recipe --quiet"
- python appveyor\move-wheel.py
- ".\\appveyor\\build.cmd %PYTHON%\\python.exe setup.py test"

after_test:
- ".\\appveyor\\build.cmd %PYTHON%\\python.exe setup.py bdist_wheel"

artifacts:
# Archive the generated wheel package in the ci.appveyor.com build report.
- path: '*.whl'
- path: 'dist\*'

#on_success:
# - TODO: upload the content of dist/*.whl to a public wheelhouse
Expand Down

0 comments on commit affcd75

Please sign in to comment.