Feat(CI): Run tests with sqlite and flake8
authorOleg Broytman <phd@phdru.name>
Fri, 9 Jun 2017 19:56:41 +0000 (22:56 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 10 Jun 2017 16:24:17 +0000 (19:24 +0300)
.travis.yml
appveyor.yml
tox.ini

index 5217864..6b5a49e 100644 (file)
@@ -21,6 +21,12 @@ env:
   - TOXENV=py34
   - TOXENV=py35
   - TOXENV=py36
+  - TOXENV=py27-sqlite
+  - TOXENV=py34-sqlite
+  - TOXENV=py35-sqlite
+  - TOXENV=py36-sqlite
+  - TOXENV=py27-flake8
+  - TOXENV=py34-flake8
 
 install:
   - travis_retry pip install tox
index 24320ec..80ba5e1 100644 (file)
@@ -50,6 +50,46 @@ environment:
       PYTHON_VERSION: "3.6"
       PYTHON_ARCH: "64"
       TOX_ENV: "py36"
+    - PYTHON_HOME: "C:\\Python27"
+      PYTHON_VERSION: "2.7"
+      PYTHON_ARCH: "32"
+      TOX_ENV: "py27-sqlite-w32"
+    - PYTHON_HOME: "C:\\Python27-x64"
+      PYTHON_VERSION: "2.7"
+      PYTHON_ARCH: "64"
+      TOX_ENV: "py27-sqlite-w32"
+    - PYTHON_HOME: "C:\\Python34"
+      PYTHON_VERSION: "3.4"
+      PYTHON_ARCH: "32"
+      TOX_ENV: "py34-sqlite-w32"
+    - PYTHON_HOME: "C:\\Python34-x64"
+      PYTHON_VERSION: "3.4"
+      PYTHON_ARCH: "64"
+      TOX_ENV: "py34-sqlite-w32"
+    - PYTHON_HOME: "C:\\Python35"
+      PYTHON_VERSION: "3.5"
+      PYTHON_ARCH: "32"
+      TOX_ENV: "py35-sqlite-w32"
+    - PYTHON_HOME: "C:\\Python35-x64"
+      PYTHON_VERSION: "3.5"
+      PYTHON_ARCH: "64"
+      TOX_ENV: "py35-sqlite-w32"
+    - PYTHON_HOME: "C:\\Python36"
+      PYTHON_VERSION: "3.6"
+      PYTHON_ARCH: "32"
+      TOX_ENV: "py36-sqlite-w32"
+    - PYTHON_HOME: "C:\\Python36-x64"
+      PYTHON_VERSION: "3.6"
+      PYTHON_ARCH: "64"
+      TOX_ENV: "py36-sqlite-w32"
+    - PYTHON_HOME: "C:\\Python27"
+      PYTHON_VERSION: "2.7"
+      PYTHON_ARCH: "32"
+      TOX_ENV: "py27-flake8"
+    - PYTHON_HOME: "C:\\Python34-x64"
+      PYTHON_VERSION: "3.4"
+      PYTHON_ARCH: "64"
+      TOX_ENV: "py34-flake8"
 
 install:
   # Ensure we use the right python version
diff --git a/tox.ini b/tox.ini
index 6feee24..324f4d1 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 1.8
-envlist = {py27,py34,py35,py36},{py27,py34,py35,py36}-{postgres,sqlite},{py27,py34}-flake8
+envlist = {py27,py34,py35,py36},{py27,py34,py35,py36}-{postgres,sqlite,sqlite-w32},{py27,py34}-flake8
 
 # Base test environment settings
 [testenv]
@@ -83,6 +83,22 @@ commands = {[sqlite]commands}
 [testenv:py36-sqlite]
 commands = {[sqlite]commands}
 
+[sqlite-w32]
+commands =
+    {[testenv]commands}
+    -{envpython} {envbindir}/rm.py C:/projects/sqlconvert/test.sqdb
+    pytest --cov=sqlconvert -D sqlite:/C:/projects/sqlconvert/test.sqdb?debug=1
+    {envpython} {envbindir}/rm.py C:/projects/sqlconvert/test.sqdb
+
+[testenv:py27-sqlite-w32]
+commands = {[sqlite-w32]commands}
+
+[testenv:py34-sqlite-w32]
+commands = {[sqlite-w32]commands}
+
+[testenv:py35-sqlite-w32]
+commands = {[sqlite-w32]commands}
+
 # flake8
 [testenv:py27-flake8]
 deps =