diff --git a/.travis.yml b/.travis.yml index a1d2214..4522adb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,12 @@ language: python python: 3.5 +compiler: gcc +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-4.9 env: - TOX_ENV=py35 - TOX_ENV=docs diff --git a/tox-requirements.txt b/tox-requirements.txt new file mode 100644 index 0000000..8215a56 --- /dev/null +++ b/tox-requirements.txt @@ -0,0 +1,6 @@ +Cython +git+https://github.com/tarekziade/cystatsd.git#egg=cystatsd +aiostatsd +pytest +pytest-cov +coveralls diff --git a/tox.ini b/tox.ini index 93a7419..848cc69 100644 --- a/tox.ini +++ b/tox.ini @@ -1,26 +1,38 @@ [tox] downloadcache = {toxworkdir}/cache/ -envlist = py35,flake8,docs +envlist = py35,flake8,docs,macosx + +[testenv:macosx] +platform = darwin +setenv = + MACOSX_DEPLOYMENT_TARGET=10.10 +deps = -rtox-requirements.txt + -rrequirements.txt +commands = + pytest --cov-config .coveragerc --cov molotov molotov/tests + - coveralls [testenv] +platform = linux2|linux +setenv = + CXXFLAGS="--std=c++0x" + CXX="g++-4.9" + CC="g++-4.9" passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH -deps = -rrequirements.txt - pytest - pytest-cov - coveralls - Cython - aiostatsd - +deps = -rtox-requirements.txt + -rrequirements.txt commands = pytest --cov-config .coveragerc --cov molotov molotov/tests - coveralls [testenv:flake8] +platform = darwin|linux2|linux commands = flake8 molotov deps = flake8 [testenv:docs] +platform = darwin|linux2|linux basepython=python3.5 deps = -rrequirements.txt