-
Notifications
You must be signed in to change notification settings - Fork 15
/
appveyor.yml
55 lines (48 loc) · 1.36 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: 1.0.{build}
os: Windows Server 2012 R2
environment:
HOST: localhost
SQLUSER: sa
SQLPASSWORD: Password12!
DATABASE: test
matrix:
- PYTHON: "C:\\Python36"
DJANGOVER: 1.11.3
SQLINSTANCE: SQL2016
- PYTHON: "C:\\Python27"
DJANGOVER: 1.11.3
SQLINSTANCE: SQL2016
- PYTHON: "C:\\Python36"
DJANGOVER: 1.10.7
SQLINSTANCE: SQL2016
- PYTHON: "C:\\Python36"
DJANGOVER: 1.9.13
SQLINSTANCE: SQL2016
- PYTHON: "C:\\Python36"
DJANGOVER: 1.11.3
SQLINSTANCE: SQL2014
- PYTHON: "C:\\Python36"
DJANGOVER: 1.11.3
SQLINSTANCE: SQL2012SP1
install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- python --version
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
- pip install django==%DJANGOVER%
- pip install enum34
- pip install python-memcached <= 1.53
- pip install mock codecov
- pip install -e .
build_script:
- python setup.py sdist
before_test:
# setup SQL Server
- ps: |
$instanceName = $env:SQLINSTANCE
Start-Service "MSSQL`$$instanceName"
Start-Service "SQLBrowser"
- sqlcmd -S "(local)\%SQLINSTANCE%" -Q "Use [master]; CREATE DATABASE test;"
- sqlcmd -S "(local)\%SQLINSTANCE%" -h -1 -Q "set nocount on; Select @@version"
test_script:
- coverage run tests/runtests.py --noinput --settings=test_mssql --debug-sql
- codecov