Configure Travis CI

This commit is contained in:
Dean Moldovan 2016-05-25 11:16:56 +02:00
parent cfd899cdf7
commit 528c6f0ac9
2 changed files with 31 additions and 0 deletions

28
.travis.yml Normal file
View file

@ -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

3
test.py Normal file
View file

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