cmake_example/.travis.yml
Dean Moldovan 0a8d583cd0 Improve CI tests
- Test sdist package on all platforms
- Include Python 2.7 and 32-bit versions on Windows
2016-06-05 13:30:17 +02:00

29 lines
621 B
YAML

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:
- python setup.py sdist
- pip install dist/*.tar.gz
script:
- python tests/test.py