-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Backport build fixes to 0.7, test compilation on Windows
- Loading branch information
1 parent
9173c48
commit 80fcfc0
Showing
8 changed files
with
65 additions
and
26 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,40 @@ | ||
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 cython scipy matplotlib pandas setuptools libpython m2w64-toolchain -c msys2 -q | ||
- gcc --version | ||
- mingw32-make --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" | ||
# generate required cpp files | ||
- mingw32-make | ||
# 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/ httpstan | ||
|
||
# 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 httpstan" |
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