diff --git a/.travis.yml b/.travis.yml index b39d603ee..526b3d33a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,19 @@ language: python +# please keep this in sync with docs/using.rst (Ubuntu section, apt-get) before_install: > travis_retry sudo apt-get install python python-setuptools python-virtualenv python-dev gcc swig dialog libaugeas0 libssl-dev + libffi-dev ca-certificates -install: - - travis_retry python setup.py dev # installs tox - - travis_retry pip install coveralls - -script: travis_retry tox +install: "travis_retry pip install tox coveralls" +script: "travis_retry tox" after_success: '[ "$TOXENV" == "cover" ] && coveralls' +# using separate envs with different TOXENVs creates 4x1 Travis build +# matrix, which allows us to clearly distinguish which component under +# test has failed env: - TOXENV=py26 - TOXENV=py27 diff --git a/docs/using.rst b/docs/using.rst index 2ebe1d078..9b09833e4 100644 --- a/docs/using.rst +++ b/docs/using.rst @@ -27,6 +27,7 @@ Ubuntu gcc swig dialog libaugeas0 libssl-dev libffi-dev \ ca-certificates +.. Please keep the above command in sync with .travis.yml (before_install) Mac OSX -------