Skip to content

Commit

Permalink
ci testing stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeeren committed Nov 19, 2015
1 parent 3cb0a71 commit 38f5c21
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 42 deletions.
72 changes: 45 additions & 27 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,69 +1,85 @@
version: '{branch}-{build}'
build: off
cache:
- '%LOCALAPPDATA%\pip\Cache'
environment:
global:
WITH_COMPILER: 'cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd'
TOX_USE_SITEPACKAGES: true
matrix:
- TOXENV: check
PYTHON_HOME: C:\Python27
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '32'
- TOXENV: '2.7-nocover'
TOXPYTHON: C:\python27\python.exe
TOXPYTHON: C:\mcpython27\python.exe
WINDOWS_SDK_VERSION: v7.0
PYTHON_HOME: C:\python27
PYTHON_HOME: C:\mcpython27
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '32'
MINICONDA_HOME: C:\Miniconda-x64
- TOXENV: '2.7-nocover'
TOXPYTHON: C:\python27-x64\python.exe
TOXPYTHON: C:\mcpython27-x64\python.exe
WINDOWS_SDK_VERSION: v7.0
PYTHON_HOME: C:\python27-x64
PYTHON_HOME: C:\mcpython27-x64
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '64'
MINICONDA_HOME: C:\Miniconda-x64
- TOXENV: '3.3-nocover'
TOXPYTHON: C:\python33\python.exe
TOXPYTHON: C:\mcpython33\python.exe
WINDOWS_SDK_VERSION: v7.1
PYTHON_HOME: C:\python33
PYTHON_HOME: C:\mcpython33
PYTHON_VERSION: '3.3'
PYTHON_ARCH: '32'
MINICONDA_HOME: C:\Miniconda-x64
- TOXENV: '3.3-nocover'
TOXPYTHON: C:\python33-x64\python.exe
TOXPYTHON: C:\mcpython33-x64\python.exe
WINDOWS_SDK_VERSION: v7.1
PYTHON_HOME: C:\python33-x64
PYTHON_HOME: C:\mcpython33-x64
PYTHON_VERSION: '3.3'
PYTHON_ARCH: '64'
MINICONDA_HOME: C:\Miniconda-x64
- TOXENV: '3.4-nocover'
TOXPYTHON: C:\python34\python.exe
TOXPYTHON: C:\mcpython34\python.exe
WINDOWS_SDK_VERSION: v7.0
PYTHON_HOME: C:\python34
PYTHON_HOME: C:\mcpython34
PYTHON_VERSION: '3.4'
PYTHON_ARCH: '32'
MINICONDA_HOME: C:\Miniconda-x64
- TOXENV: '3.4-nocover'
TOXPYTHON: C:\python34-x64\python.exe
TOXPYTHON: C:\mcpython34-x64\python.exe
WINDOWS_SDK_VERSION: v7.1
PYTHON_HOME: C:\python34-x64
PYTHON_HOME: C:\mcpython34-x64
PYTHON_VERSION: '3.4'
PYTHON_ARCH: '64'
MINICONDA_HOME: C:\Miniconda-x64
- TOXENV: '3.5-nocover'
TOXPYTHON: C:\python35\python.exe
PYTHON_HOME: C:\python35
TOXPYTHON: C:\mcpython35\python.exe
PYTHON_HOME: C:\mcpython35
PYTHON_VERSION: '3.5'
PYTHON_ARCH: '32'
MINICONDA_HOME: C:\Miniconda-x64
- TOXENV: '3.5-nocover'
TOXPYTHON: C:\python35-x64\python.exe
PYTHON_HOME: C:\python35-x64
TOXPYTHON: C:\mcpython35-x64\python.exe
PYTHON_HOME: C:\mcpython35-x64
PYTHON_VERSION: '3.5'
PYTHON_ARCH: '64'
MINICONDA_HOME: C:\Miniconda-x64
- TOXENV: check
PYTHON_HOME: C:\mcPython27
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '32'
MINICONDA_HOME: C:\Miniconda
init:
- ps: echo $env:TOXENV
- ps: ls C:\Python*
#- dir /s /b C:\MinGW*
#- dir /s /b C:\msys*
install:
- python -u ci\appveyor-bootstrap.py
#- python -u ci\appveyor-bootstrap.py
- set PATH=%PATH%;%MINICONDA_HOME%\Scripts
- where conda
- conda --version
- conda config --set always_yes yes
- conda create -q -p %PYTHON_HOME% python=%PYTHON_VERSION%
- conda update -q -p %PYTHON_HOME% conda
- conda install -q -p %PYTHON_HOME% numpy
- activate %PYTHON_HOME%
- python setup.py clean --all build_ext --force --inplace --compiler=mingw32
- '%PYTHON_HOME%\Scripts\virtualenv --version'
- '%PYTHON_HOME%\Scripts\easy_install --version'
- '%PYTHON_HOME%\Scripts\pip --version'
Expand All @@ -73,10 +89,10 @@ install:
#- C:\msys64\mingw64\bin\mingw-get install gfortran
- set PATH=%PATH%;C:\msys64\mingw64\bin
# test that building works before long numpy install
- C:\Miniconda-x64\Scripts\conda config --set always_yes yes --set changeps1 no
- C:\Miniconda-x64\Scripts\conda update -q conda
- C:\Miniconda-x64\Scripts\conda install -q pip numpy
- C:\Miniconda-x64\python setup.py clean --all build_ext --force --inplace --compiler=mingw32
#- C:\Miniconda-x64\Scripts\conda config --set always_yes yes
#- C:\Miniconda-x64\Scripts\conda update -q conda
#- C:\Miniconda-x64\Scripts\conda install -q pip numpy
#- C:\Miniconda-x64\python setup.py clean --all build_ext --force --inplace --compiler=mingw32
test_script:
- '%WITH_COMPILER% %PYTHON_HOME%\Scripts\tox'

Expand All @@ -88,6 +104,8 @@ after_test:
%PYTHON_HOME%\Scripts\pip install twine &&
%PYTHON_HOME%\Scripts\twine upload -u %PYPI_USER% -p %PYPI_PASS% dist/*
)
# not sure if this is needed
- deactivate

on_failure:
- ps: dir "env:"
Expand Down
42 changes: 27 additions & 15 deletions ci/templates/appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,55 @@
version: '{branch}-{build}'
build: off
cache:
- '%LOCALAPPDATA%\pip\Cache'
environment:
global:
WITH_COMPILER: 'cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd'
TOX_USE_SITEPACKAGES: true
matrix:
- TOXENV: check
PYTHON_HOME: C:\Python27
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '32'
{% for env, config in tox_environments|dictsort %}{% if config.python in ('python2.6', 'python2.7', 'python3.3', 'python3.4', 'python3.5') and not config.cover %}
- TOXENV: '{{ env }}{% if config.cover %},codecov{% endif %}'
TOXPYTHON: C:\{{ config.python.replace('.', '') }}\python.exe
TOXPYTHON: C:\mc{{ config.python.replace('.', '') }}\python.exe
{%- if config.python != 'python3.5' %}

WINDOWS_SDK_VERSION: v7.{{ '1' if config.python[-1] == '3' else '0' }}
{%- endif %}

PYTHON_HOME: C:\{{ config.python.replace('.', '') }}
PYTHON_HOME: C:\mc{{ config.python.replace('.', '') }}
PYTHON_VERSION: '{{ config.python[-3:] }}'
PYTHON_ARCH: '32'
MINICONDA_HOME: C:\Miniconda-x64
- TOXENV: '{{ env }}{% if config.cover %},codecov{% endif %}'
TOXPYTHON: C:\{{ config.python.replace('.', '') }}-x64\python.exe
TOXPYTHON: C:\mc{{ config.python.replace('.', '') }}-x64\python.exe
{%- if config.python != 'python3.5' %}

WINDOWS_SDK_VERSION: v7.{{ '1' if config.python[-3] == '3' else '0' }}
{%- endif %}

PYTHON_HOME: C:\{{ config.python.replace('.', '') }}-x64
PYTHON_HOME: C:\mc{{ config.python.replace('.', '') }}-x64
PYTHON_VERSION: '{{ config.python[-3:] }}'
PYTHON_ARCH: '64'
MINICONDA_HOME: C:\Miniconda-x64
{% endif %}{% endfor %}
- TOXENV: check
PYTHON_HOME: C:\mcPython27
PYTHON_VERSION: '2.7'
PYTHON_ARCH: '32'
MINICONDA_HOME: C:\Miniconda
init:
- ps: echo $env:TOXENV
- ps: ls C:\Python*
#- dir /s /b C:\MinGW*
#- dir /s /b C:\msys*
install:
- python -u ci\appveyor-bootstrap.py
#- python -u ci\appveyor-bootstrap.py
- set PATH=%PATH%;%MINICONDA_HOME%\Scripts
- where conda
- conda --version
- conda config --set always_yes yes
- conda create -q -p %PYTHON_HOME% python=%PYTHON_VERSION%
- conda update -q -p %PYTHON_HOME% conda
- conda install -q -p %PYTHON_HOME% numpy
- activate %PYTHON_HOME%
- python setup.py clean --all build_ext --force --inplace --compiler=mingw32
- '%PYTHON_HOME%\Scripts\virtualenv --version'
- '%PYTHON_HOME%\Scripts\easy_install --version'
- '%PYTHON_HOME%\Scripts\pip --version'
Expand All @@ -49,10 +59,10 @@ install:
#- C:\msys64\mingw64\bin\mingw-get install gfortran
- set PATH=%PATH%;C:\msys64\mingw64\bin
# test that building works before long numpy install
- C:\Miniconda-x64\Scripts\conda config --set always_yes yes --set changeps1 no
- C:\Miniconda-x64\Scripts\conda update -q conda
- C:\Miniconda-x64\Scripts\conda install -q pip numpy
- C:\Miniconda-x64\python setup.py clean --all build_ext --force --inplace --compiler=mingw32
#- C:\Miniconda-x64\Scripts\conda config --set always_yes yes
#- C:\Miniconda-x64\Scripts\conda update -q conda
#- C:\Miniconda-x64\Scripts\conda install -q pip numpy
#- C:\Miniconda-x64\python setup.py clean --all build_ext --force --inplace --compiler=mingw32
test_script:
- '%WITH_COMPILER% %PYTHON_HOME%\Scripts\tox'

Expand All @@ -64,6 +74,8 @@ after_test:
%PYTHON_HOME%\Scripts\pip install twine &&
%PYTHON_HOME%\Scripts\twine upload -u %PYPI_USER% -p %PYPI_PASS% dist/*
)
# not sure if this is needed
- deactivate

on_failure:
- ps: dir "env:"
Expand Down

0 comments on commit 38f5c21

Please sign in to comment.