diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b2bd571 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,28 @@ +language: cpp +os: +- linux +- osx +env: +- PYTHON=2.7 +- PYTHON=3.5 +addons: + apt: + sources: + - ubuntu-toolchain-r-test + - deadsnakes + - kubuntu-backports + packages: + - g++-4.8 + - python3.5 + - python3.5-dev + - cmake +before_install: +- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX=g++-4.8 CC=gcc-4.8; fi +- if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$PYTHON" = "3.5" ]; then brew update; brew install python3; fi +- pip install --user virtualenv +- virtualenv -p python$PYTHON venv +- source venv/bin/activate +install: +- pip install . +script: +- python test.py diff --git a/test.py b/test.py new file mode 100644 index 0000000..dbdedcc --- /dev/null +++ b/test.py @@ -0,0 +1,3 @@ +import cmake_example + +print(cmake_example.add(1, 2))