Skip to content

Commit

Permalink
Travis-CI & Linux & Darwin specific compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekziade committed Feb 7, 2017
1 parent 52a8d2c commit 5f72dc9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .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
Expand Down
6 changes: 6 additions & 0 deletions tox-requirements.txt
@@ -0,0 +1,6 @@
Cython
git+https://github.com/tarekziade/cystatsd.git#egg=cystatsd
aiostatsd
pytest
pytest-cov
coveralls
28 changes: 20 additions & 8 deletions 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
Expand Down

0 comments on commit 5f72dc9

Please sign in to comment.