Improve CI tests
- Test sdist package on all platforms - Include Python 2.7 and 32-bit versions on Windows
This commit is contained in:
parent
f889d7d151
commit
0a8d583cd0
5 changed files with 16 additions and 8 deletions
|
@ -2,11 +2,14 @@ version: 1.0.{build}
|
||||||
image: Visual Studio 2015
|
image: Visual Studio 2015
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
|
- PATH: C:\Python27\;C:\Python27\Scripts\;%PATH%
|
||||||
|
- PATH: C:\Python27-x64\;C:\Python27-x64\Scripts\;%PATH%
|
||||||
|
- PATH: C:\Python35\;C:\Python35\Scripts\;%PATH%
|
||||||
- PATH: C:\Python35-x64\;C:\Python35-x64\Scripts\;%PATH%
|
- PATH: C:\Python35-x64\;C:\Python35-x64\Scripts\;%PATH%
|
||||||
- PATH: C:\Miniconda35-x64\;C:\Miniconda35-x64\Scripts\;%PATH%
|
|
||||||
install:
|
install:
|
||||||
- cmd: git submodule update -q --init --recursive
|
- cmd: git submodule update -q --init --recursive
|
||||||
build_script:
|
build_script:
|
||||||
- cmd: pip install .
|
- cmd: python setup.py sdist
|
||||||
|
- cmd: pip install dist\cmake_example-0.0.1.zip
|
||||||
test_script:
|
test_script:
|
||||||
- cmd: python test.py
|
- cmd: python tests\test.py
|
||||||
|
|
|
@ -23,6 +23,7 @@ before_install:
|
||||||
- virtualenv -p python$PYTHON venv
|
- virtualenv -p python$PYTHON venv
|
||||||
- source venv/bin/activate
|
- source venv/bin/activate
|
||||||
install:
|
install:
|
||||||
- pip install .
|
- python setup.py sdist
|
||||||
|
- pip install dist/*.tar.gz
|
||||||
script:
|
script:
|
||||||
- python test.py
|
- python tests/test.py
|
||||||
|
|
4
MANIFEST.in
Normal file
4
MANIFEST.in
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
include README.md LICENSE
|
||||||
|
global-include CMakeLists.txt *.cmake
|
||||||
|
recursive-include src *
|
||||||
|
recursive-include pybind11/include *.h
|
3
test.py
3
test.py
|
@ -1,3 +0,0 @@
|
||||||
import cmake_example
|
|
||||||
|
|
||||||
print(cmake_example.add(1, 2))
|
|
3
tests/test.py
Normal file
3
tests/test.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from cmake_example import add
|
||||||
|
|
||||||
|
assert add(1, 2) == 3
|
Loading…
Add table
Reference in a new issue