Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #343 from pymor/appveyor
[WIP] Enable Automated testing on Windows
- Loading branch information
Showing
18 changed files
with
206 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
environment: | ||
matrix: | ||
# Pre-installed Python versions, which Appveyor may upgrade to | ||
# a later point release. | ||
# See: http://www.appveyor.com/docs/installed-software#python | ||
|
||
# building pymor extensions fails on 2.7 currently | ||
#- PYTHON_VERSION: "2.7" # currently 2.7.11 | ||
#PYTHON_ARCH: "32" | ||
#CONDA: "C:\\Miniconda" | ||
#MARKER: "not grid" | ||
|
||
#- PYTHON_VERSION: "2.7" # currently 2.7.11 | ||
#PYTHON_ARCH: "32" | ||
#CONDA: "C:\\Miniconda" | ||
#MARKER: "grid" | ||
|
||
- PYTHON_VERSION: "3.4" # currently 3.4.3 | ||
PYTHON_ARCH: "32" | ||
CONDA: "C:\\Miniconda3" | ||
MARKER: "not grid" | ||
QT_API: "pyqt5" | ||
|
||
- PYTHON_VERSION: "3.4" # currently 3.4.3 | ||
PYTHON_ARCH: "32" | ||
CONDA: "C:\\Miniconda3" | ||
MARKER: "grid" | ||
QT_API: "pyqt5" | ||
|
||
- PYTHON_VERSION: "3.5" # currently 3.5.1 | ||
PYTHON_ARCH: "32" | ||
CONDA: "C:\\Miniconda35" | ||
MARKER: "not grid" | ||
QT_API: "pyqt5" | ||
ALLOW_FAIL: "true" | ||
|
||
- PYTHON_VERSION: "3.5" # currently 3.5.1 | ||
PYTHON_ARCH: "32" | ||
CONDA: "C:\\Miniconda35" | ||
MARKER: "grid" | ||
QT_API: "pyqt5" | ||
|
||
matrix: | ||
allow_failures: | ||
- ALLOW_FAIL: "true" | ||
|
||
install: | ||
# If there is a newer build queued for the same PR, cancel this one. | ||
# The AppVeyor 'rollout builds' option is supposed to serve the same | ||
# purpose but it is problematic because it tends to cancel builds pushed | ||
# directly to master instead of just PR builds (or the converse). | ||
# credits: JuliaLang developers. | ||
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod ` | ||
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | ` | ||
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { ` | ||
throw "There are newer queued builds for this pull request, failing early." } | ||
- set PATH=%CONDA%;%CONDA%\Scripts;%PATH% | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda update -q conda | ||
# hardcode a few installs that don't succeed otherwise | ||
- conda install numpy pip m2-unzip | ||
- conda install -c anaconda pyqt=5.6.0 | ||
- if [%PYTHON_VERSION%] == [3.4] ( conda remove numpy && pip install numpy && pip install https://bitbucket.org/pauloh/pyevtk/get/tip.tar.gz) | ||
|
||
- for /f %%i in (requirements.txt requirements-optional.txt requirements-travis.txt ) do ( | ||
conda install %%i 1> nul 2>&1 & pip install %%i 1> nul 2>&1 & echo %%i | ||
) | ||
- curl -fsS -o gmsh.zip http://gmsh.info/bin/Windows/gmsh-2.16.0-Windows32.zip && unzip -j gmsh.zip -d %CONDA%\Scripts | ||
|
||
build_script: | ||
- set PATH=%CONDA%;%CONDA%\Scripts;%PATH% | ||
- pip freeze | ||
- set PYTHONPATH=%cd%\src;%PYTHONPATH%; | ||
- python setup.py build_ext -i | ||
|
||
test_script: | ||
- set PYTHONPATH=%cd%\src;%PYTHONPATH%; | ||
- py.test -r sxX -k "%MARKER%" | ||
|
||
#after_test: | ||
# If tests are successful, create binary packages for the project. | ||
#- "%CMD_IN_ENV% python setup.py bdist_wheel" | ||
#- "%CMD_IN_ENV% python setup.py bdist_wininst" | ||
#- "%CMD_IN_ENV% python setup.py bdist_msi" | ||
#- ps: "ls dist" | ||
|
||
#artifacts: | ||
# Archive the generated packages in the ci.appveyor.com build report. | ||
#- path: dist\* | ||
|
||
#on_success: | ||
# - TODO: upload the content of dist/*.whl to a public wheelhouse | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
-r requirements.txt | ||
https://bitbucket.org/pauloh/pyevtk/get/tip.tar.gz | ||
ipyparallel | ||
ipython>=3.0 | ||
matplotlib | ||
mpi4py | ||
pyamg | ||
pyopengl | ||
pyside ; python_version == '2.7' | ||
https://pymor.github.io/wheels/PySide-1.2.2-cp34-cp34m-linux_x86_64.whl ; python_version == '3.4' | ||
https://pymor.github.io/wheels/PySide-1.2.2-cp35-cp35m-linux_x86_64.whl ; python_version == '3.5' | ||
qtpy | ||
PySide ; python_version < '3.5' | ||
PyQt5 ; python_version >= '3.5' | ||
pytest>=3.0 | ||
pytest-cov | ||
pillow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
-r requirements.txt | ||
pytest-cov | ||
check-manifest | ||
python-coveralls | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ docopt | |
numpy>=1.8.1 | ||
pytest-runner>=2.9 | ||
scipy>=0.13.3 | ||
psutil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.