Improve CI tests

- Test sdist package on all platforms
- Include Python 2.7 and 32-bit versions on Windows
This commit is contained in:
Dean Moldovan 2016-06-04 16:23:04 +02:00
parent f889d7d151
commit 0a8d583cd0
5 changed files with 16 additions and 8 deletions

View file

@ -2,11 +2,14 @@ version: 1.0.{build}
image: Visual Studio 2015
environment:
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:\Miniconda35-x64\;C:\Miniconda35-x64\Scripts\;%PATH%
install:
- cmd: git submodule update -q --init --recursive
build_script:
- cmd: pip install .
- cmd: python setup.py sdist
- cmd: pip install dist\cmake_example-0.0.1.zip
test_script:
- cmd: python test.py
- cmd: python tests\test.py

View file

@ -23,6 +23,7 @@ before_install:
- virtualenv -p python$PYTHON venv
- source venv/bin/activate
install:
- pip install .
- python setup.py sdist
- pip install dist/*.tar.gz
script:
- python test.py
- python tests/test.py

4
MANIFEST.in Normal file
View file

@ -0,0 +1,4 @@
include README.md LICENSE
global-include CMakeLists.txt *.cmake
recursive-include src *
recursive-include pybind11/include *.h

View file

@ -1,3 +0,0 @@
import cmake_example
print(cmake_example.add(1, 2))

3
tests/test.py Normal file
View file

@ -0,0 +1,3 @@
from cmake_example import add
assert add(1, 2) == 3