-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add .appveyor.yml for superficial Windows testing
Windows is not supported. Some tests pass though.
- Loading branch information
1 parent
2bf4183
commit 3957431
Showing
1 changed file
with
38 additions
and
0 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,38 @@ | ||
os: Visual Studio 2015 | ||
platform: x64 | ||
environment: | ||
global: | ||
MINICONDA: "C:\\Miniconda36-x64" | ||
matrix: | ||
- PYTHON_VERSION: 3.7 | ||
|
||
install: | ||
- set PATH=%MINICONDA%;%MINICONDA%\Scripts;%PATH% | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda update -q conda | ||
- conda info -a | ||
- conda create -q -n test-env python=%PYTHON_VERSION% | ||
- activate test-env | ||
- conda install numpy pandas setuptools libpython m2w64-toolchain -c msys2 -q | ||
- gcc --version | ||
# Install the build dependencies of the project. | ||
- pip install -q -r requirements.txt | ||
- pip install -q -r test-requirements.txt | ||
|
||
- ECHO "Starting to build the wheel" | ||
# build the wheel and install it | ||
- python setup.py --quiet bdist_wheel | ||
- ps: "ls dist" | ||
|
||
- ECHO "Install generated wheel to test it" | ||
# Install the generated wheel package to test it | ||
- pip install -q --pre --no-index --find-links dist/ pystan | ||
|
||
# Not a .NET project, we build pystan in the install step instead | ||
build: false | ||
|
||
test_script: | ||
- mkdir empty_folder | ||
- cd empty_folder | ||
- python -c "import stan" | ||
- python -m pytest -v ../tests/test_build_program.py |