You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2019/11/29 22:01:09 UTC

[libcloud] 03/03: Add checks to the ci which verify the library installs correctly without any dependencies pre-installed.

This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 75f07bd2c75ae6b82ccc07090bdefaa07b9938b8
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Fri Nov 29 22:59:55 2019 +0100

    Add checks to the ci which verify the library installs correctly without
    any dependencies pre-installed.
---
 .travis.yml |  2 ++
 tox.ini     | 13 +++++++++++--
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 8bf8272..47f1446 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,12 +14,14 @@ matrix:
   fast_finish: true
   include:
     - python: 2.7
+      before_script: TOX_ENV=py2.7,py2.7-dist
     - python: 3.4
     - python: 3.5
     - python: 3.6
     - python: 3.7
       dist: xenial
       sudo: required
+      before_script: TOX_ENV=py3.7,py3.7-dist
     - python: 3.8
       dist: xenial
       sudo: required
diff --git a/tox.ini b/tox.ini
index 353f078..ced788b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -15,19 +15,28 @@ deps =
 commands = cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
            python setup.py test
 basepython =
-    {py2.7,checks,lint,pylint,coverage}: python2.7
+    {py2.7,checks,lint,pylint,coverage,py2.7-dist}: python2.7
     docs: python3.5
     pypypy: pypy
     pypypy3: pypy3
     py3.4: python3.4
     py3.5: python3.5
     py3.6: python3.6
-    py3.7: python3.7
+    {py3.7,py3.7-dist}: python3.7
     py3.8: python3.8
     mypy: python3.7
 whitelist_externals = cp
                       bash
                       scripts/*.sh
+[testenv:py2.7-dist]
+# Verify library installs without any dependencies
+skipdist=False
+commands = python setup.py install
+
+[testenv:py3.7-dist]
+# Verify library installs without any dependencies
+skipdist=False
+commands = python setup.py install
 
 [testenv:docs]
 deps = pysphere