]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
- don't use dropfirst if -n is used. on CI the dropfirst is
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 24 Apr 2016 18:41:38 +0000 (14:41 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 24 Apr 2016 18:41:38 +0000 (14:41 -0400)
colliding with other builds

tox.ini

diff --git a/tox.ini b/tox.ini
index 4f8da111f83876118bdc085f1c6caa3b26210052..25dc4f4c1e8022feb1d377c4739601c2b2419229 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -25,10 +25,12 @@ deps=pytest
 sitepackages=True
 usedevelop=True
 
+# only use --dropfirst option if we're *not* using -n;
+# if -n is used, we're working in brand new DBs anyway
 setenv=
-    BASECOMMAND=python -m pytest --dropfirst
+    BASECOMMAND=python -m pytest
     WORKERS=-n4
-    sqla079: WORKERS=
+    sqla079: WORKERS=--dropfirst
     oracle: WORKERS=-n2
     cov: COVERAGE={[testenv]cov_args}
     sqlite: SQLITE=--db sqlite