summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/check_self_install.py5
-rw-r--r--testing/runtests_travis.py20
2 files changed, 5 insertions, 20 deletions
diff --git a/testing/check_self_install.py b/testing/check_self_install.py
new file mode 100644
index 0000000..de3ac79
--- /dev/null
+++ b/testing/check_self_install.py
@@ -0,0 +1,5 @@
+import pkg_resources
+import setuptools_scm
+
+dist = pkg_resources.get_distribution("setuptools_scm")
+assert dist.version == setuptools_scm.get_version(), dist.version
diff --git a/testing/runtests_travis.py b/testing/runtests_travis.py
deleted file mode 100644
index 752d660..0000000
--- a/testing/runtests_travis.py
+++ /dev/null
@@ -1,20 +0,0 @@
-from subprocess import call
-
-import os
-
-if os.environ.get("TOXENV"):
- # normal tox run, lets jsut have tox do its job
- import tox
-
- tox.cmdline()
-elif os.environ.get("SELFINSTALL"):
- # self install testing needs some clarity
- # so its being executed without any other tools running
- call("python setup.py sdist", shell=True)
- call("easy_install dist/*", shell=True)
- import pkg_resources
-
- dist = pkg_resources.get_distribution("setuptools_scm")
- import setuptools_scm
-
- assert dist.version == setuptools_scm.get_version(), dist.version