-
Notifications
You must be signed in to change notification settings - Fork 216
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 #423 from brian-team/windows_testing
Windows testing
- Loading branch information
Showing
17 changed files
with
301 additions
and
41 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
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,69 @@ | ||
# CI configuration for Windows tests on appveyor | ||
# Based on Olivier Grisel's python-appveyor-demo | ||
|
||
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 .\\dev\\appveyor\\run_with_env.cmd" | ||
|
||
matrix: | ||
- PYTHON: "C:\\Python27-conda32" | ||
PYTHON_VERSION: "2.7.8" | ||
PYTHON_ARCH: "32" | ||
STANDALONE: "FALSE" | ||
|
||
- PYTHON: "C:\\Python27-conda64" | ||
PYTHON_VERSION: "2.7.8" | ||
PYTHON_ARCH: "64" | ||
STANDALONE: "FALSE" | ||
|
||
- PYTHON: "C:\\Python34-conda32" | ||
PYTHON_VERSION: "3.4.1" | ||
PYTHON_ARCH: "32" | ||
STANDALONE: "FALSE" | ||
|
||
- PYTHON: "C:\\Python34-conda64" | ||
PYTHON_VERSION: "3.4.1" | ||
PYTHON_ARCH: "64" | ||
STANDALONE: "FALSE" | ||
|
||
- PYTHON: "C:\\Python27-conda32" | ||
PYTHON_VERSION: "2.7.8" | ||
PYTHON_ARCH: "32" | ||
STANDALONE: "TRUE" | ||
|
||
- PYTHON: "C:\\Python27-conda64" | ||
PYTHON_VERSION: "2.7.8" | ||
PYTHON_ARCH: "64" | ||
STANDALONE: "TRUE" | ||
|
||
install: | ||
# Install Python and miniconda | ||
- "powershell .\\dev\\appveyor\\install_python.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 | ||
- "python --version" | ||
- "python -c \"import struct; print(struct.calcsize('P') * 8)\"" | ||
|
||
# Install the build dependencies of the project via conda | ||
- "conda install --yes --quiet numpy scipy nose sphinx sympy pyparsing jinja2 ipython setuptools" | ||
- "pip install py-cpuinfo" | ||
|
||
build: false # Not a C# project, build stuff at the test step instead. | ||
|
||
test_script: | ||
# Run the test suite | ||
- "%CMD_IN_ENV% python -c \"import sys; print(sys.executable)\"" | ||
- "%CMD_IN_ENV% python setup.py install" | ||
- "if \"%STANDALONE%\" == \"TRUE\" ( | ||
%CMD_IN_ENV% python .\\dev\\tools\\run_nose_tests_standalone.py | ||
) ELSE ( | ||
%CMD_IN_ENV% python .\\dev\\tools\\run_nose_tests.py | ||
)" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Work around the fact that older MSVC versions don't have stdint.h | ||
#ifdef _MSC_VER | ||
typedef __int32 int32_t; | ||
typedef __int64 int64_t; | ||
#else | ||
#include <stdint.h> | ||
#endif |
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.