]> git.phdru.name Git - sqlconvert.git/commitdiff
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 52178640e2d8153c5ad7f596cdd58b87a718be03..6b5a49eae960481be5c36030af1573d98b3be340 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 24320ec10952d7a7174cbb7d149982d7170aafff..80ba5e1fb3ce83998fad10b7fad105c54c17a6cb 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 6feee24747adef5a717568e83515b915da9e0c3f..324f4d135eeeb812427a4c65ec5e282656377932 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 =