This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "SQLObject development repository".
The branch, pyodbc-test has been created
at d9a63a9a8c9d0ca94bcaf068f99f99ed6bbc8c0a (commit)
- Log -----------------------------------------------------------------
http://sourceforge.net/p/sqlobject/sqlobject/ci/d9a63a9a8c9d0ca94bcaf068f99f99ed6bbc8c0a
commit d9a63a9a8c9d0ca94bcaf068f99f99ed6bbc8c0a
Author: Oleg Broytman <ph...@ph...>
Date: Sat Feb 17 23:53:32 2018 +0300
CI: Run only 1 MSSQL ODBC test at AppVeyor
diff --git a/appveyor.yml b/appveyor.yml
index da5054e..c0e5ba9 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -7,7 +7,7 @@ version: '{branch}-{build}'
# Other branches can allow themselves.
branches:
only:
- - master
+ - pyodbc-test
skip_branch_with_pr: false
skip_tags: true
@@ -17,15 +17,7 @@ cache:
# Match travis
clone_depth: 50
-services:
- - mysql
- - postgresql
-
environment:
- MYSQL_PWD: "Password12!"
- PGUSER: "postgres"
- PGPASSWORD: "Password12!"
-
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
@@ -38,107 +30,6 @@ environment:
PYTHON_VERSION: "2.7"
PYTHON_HOME: "C:\\Python27"
db: mssql2014
- - TOXENV: "py34-mssql-pyodbc-w32"
- PYTHON_ARCH: "64"
- PYTHON_VERSION: "3.4"
- PYTHON_HOME: "C:\\Python34-x64"
- db: mssql2014
- - TOXENV: "py27-mysql-connector-w32"
- PYTHON_ARCH: "32"
- PYTHON_VERSION: "2.7"
- PYTHON_HOME: "C:\\Python27"
- db: mysql
- - TOXENV: "py36-mysql-connector-w32"
- PYTHON_ARCH: "64"
- PYTHON_VERSION: "3.6"
- PYTHON_HOME: "C:\\Python36-x64"
- db: mysql
- - TOXENV: "py27-pymysql-w32"
- PYTHON_ARCH: "32"
- PYTHON_VERSION: "2.7"
- PYTHON_HOME: "C:\\Python27"
- db: mysql
- - TOXENV: "py36-pymysql-w32"
- PYTHON_ARCH: "64"
- PYTHON_VERSION: "3.6"
- PYTHON_HOME: "C:\\Python36-x64"
- db: mysql
- - TOXENV: "py27-mysql-pyodbc-w32"
- PYTHON_ARCH: "64"
- PYTHON_VERSION: "2.7"
- PYTHON_HOME: "C:\\Python27-x64"
- db: mysql
- - TOXENV: "py36-mysql-pyodbc-w32"
- PYTHON_ARCH: "64"
- PYTHON_VERSION: "3.6"
- PYTHON_HOME: "C:\\Python36-x64"
- db: mysql
- - TOXENV: "py27-postgres-psycopg-w32"
- PYTHON_ARCH: "32"
- PYTHON_VERSION: "2.7"
- PYTHON_HOME: "C:\\Python27"
- db: postgresql
- - TOXENV: "py36-postgres-psycopg-w32"
- PYTHON_ARCH: "64"
- PYTHON_VERSION: "3.6"
- PYTHON_HOME: "C:\\Python36-x64"
- db: postgresql
- - TOXENV: "py27-postgres-pygresql-w32"
- PYTHON_ARCH: "64"
- PYTHON_VERSION: "2.7"
- PYTHON_HOME: "C:\\Python27-x64"
- db: postgresql
- - TOXENV: "py36-postgres-pygresql-w32"
- PYTHON_ARCH: "64"
- PYTHON_VERSION: "3.6"
- PYTHON_HOME: "C:\\Python36-x64"
- db: postgresql
- - TOXENV: "py36-pypostgresql-w32"
- PYTHON_ARCH: "32"
- PYTHON_VERSION: "3.6"
- PYTHON_HOME: "C:\\Python36"
- db: postgresql
- - TOXENV: "py36-pypostgresql-w32"
- PYTHON_ARCH: "64"
- PYTHON_VERSION: "3.6"
- PYTHON_HOME: "C:\\Python36-x64"
- db: postgresql
- - TOXENV: "py27-postgres-pg8000-w32"
- PYTHON_ARCH: "32"
- PYTHON_VERSION: "2.7"
- PYTHON_HOME: "C:\\Python27"
- db: postgresql
- - TOXENV: "py36-postgres-pg8000-w32"
- PYTHON_ARCH: "64"
- PYTHON_VERSION: "3.6"
- PYTHON_HOME: "C:\\Python36-x64"
- db: postgresql
- - TOXENV: "py27-postgres-pyodbc-w32"
- PYTHON_ARCH: "64"
- PYTHON_VERSION: "2.7"
- PYTHON_HOME: "C:\\Python27-x64"
- db: postgresql
- - TOXENV: "py36-postgres-pyodbc-w32"
- PYTHON_ARCH: "64"
- PYTHON_VERSION: "3.6"
- PYTHON_HOME: "C:\\Python36-x64"
- db: postgresql
- - TOXENV: "py27-sqlite-w32"
- PYTHON_ARCH: "32"
- PYTHON_VERSION: "2.7"
- PYTHON_HOME: "C:\\Python27"
- - TOXENV: "py36-sqlite-w32"
- PYTHON_ARCH: "64"
- PYTHON_VERSION: "3.6"
- PYTHON_HOME: "C:\\Python36-x64"
- - TOXENV: "py27-sqlite-memory-w32"
- PYTHON_ARCH: "32"
- PYTHON_VERSION: "2.7"
- PYTHON_HOME: "C:\\Python27"
- - TOXENV: "py36-sqlite-memory-w32"
- PYTHON_ARCH: "64"
- PYTHON_VERSION: "3.6"
- PYTHON_HOME: "C:\\Python36-x64"
matrix:
allow_failures:
diff --git a/tox.ini b/tox.ini
index c902edb..572a3e1 100644
--- a/tox.ini
+++ b/tox.ini
@@ -395,7 +395,7 @@ commands =
{envpython} -c "import pyodbc; print(pyodbc.drivers())"
-sqlcmd -U sa -P "Password12!" -S .\SQL2014 -Q "DROP DATABASE sqlobject_test"
sqlcmd -U sa -P "Password12!" -S .\SQL2014 -Q "CREATE DATABASE sqlobject_test"
- pytest --cov=sqlobject -D "mssql://sa:Password12!@localhost\SQL2014/sqlobject_test?driver=pyodbc&odbcdrv=SQL%20Server&timeout=30&debug=1"
+ pytest --cov=sqlobject -D "mssql://sa:Password12!@localhost\SQL2014/sqlobject_test?driver=pyodbc&odbcdrv=SQL%20Server&timeout=30&debug=1" tests/test_transactions.py
sqlcmd -U sa -P "Password12!" -S .\SQL2014 -Q "DROP DATABASE sqlobject_test"
[testenv:py27-mssql-pyodbc-w32]
http://sourceforge.net/p/sqlobject/sqlobject/ci/886ec099b8a6b550b2fa9ab8886d4fa17321ab0b
commit 886ec099b8a6b550b2fa9ab8886d4fa17321ab0b
Author: Oleg Broytman <ph...@ph...>
Date: Sat Feb 17 23:50:55 2018 +0300
CI: Run MSSQL ODBC tests again
This reverts commit 6b80a2d7bc86f07314fbe666abbed49b777056e2.
diff --git a/appveyor.yml b/appveyor.yml
index c42d738..da5054e 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -33,6 +33,16 @@ environment:
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\run_with_env.cmd"
matrix:
+ - TOXENV: "py27-mssql-pyodbc-w32"
+ PYTHON_ARCH: "32"
+ PYTHON_VERSION: "2.7"
+ PYTHON_HOME: "C:\\Python27"
+ db: mssql2014
+ - TOXENV: "py34-mssql-pyodbc-w32"
+ PYTHON_ARCH: "64"
+ PYTHON_VERSION: "3.4"
+ PYTHON_HOME: "C:\\Python34-x64"
+ db: mssql2014
- TOXENV: "py27-mysql-connector-w32"
PYTHON_ARCH: "32"
PYTHON_VERSION: "2.7"
@@ -151,6 +161,21 @@ install:
# List ODBC drivers
- ps: Get-OdbcDriver -Platform 32-bit | Select-Object -ExpandProperty Name
- ps: Get-OdbcDriver -Platform 64-bit | Select-Object -ExpandProperty Name
+ # Enable TCP for mssql
+ - ps: |
+ [reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") | Out-Null
+ [reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.SqlWmiManagement") | Out-Null
+ $serverName = $env:COMPUTERNAME
+ $instanceName = 'SQL2014'
+ $smo = 'Microsoft.SqlServer.Management.Smo.'
+ $wmi = new-object ($smo + 'Wmi.ManagedComputer')
+ $uri = "ManagedComputer[@Name='$serverName']/ServerInstance[@Name='$instanceName']/ServerProtocol[@Name='Tcp']"
+ $Tcp = $wmi.GetSmoObject($uri)
+ $Tcp.IsEnabled = $true
+ $TCP.alter()
+ Set-Service SQLBrowser -StartupType Manual
+ Start-Service SQLBrowser
+ Start-Service "MSSQL`$$instanceName"
# Not a C project, so no build step
build: false
-----------------------------------------------------------------------
hooks/post-receive
--
SQLObject development repository
|