-
Notifications
You must be signed in to change notification settings - Fork 50
/
appveyor.yml
108 lines (96 loc) · 3.33 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# image:
# - Visual Studio 2017 # contains python2.7 ~ python3.8 and mysql 5.7
# - Visual Studio 2022 # contains python3.7 ~ python3.12 and mysql 8.0
# services: # mysql is now MySQL5.7 now for MySQL8.0
# - mysql
init:
- ps: |
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2022")
{
Start-Service MySQL80
}
else
{
Start-Service MySQL57
}
environment:
matrix:
# For Python versions available on Appveyor, see
# http://www.appveyor.com/docs/installed-software#python
# The list here is complete (excluding Python 2.6, which
# isn't covered by this document) at the time of writing.
- TOXENV: "pep8"
PYTHON: "C:\\Python38-x64"
DISTUTILS_USE_SDK: "1"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# - TOXENV: "py27"
# PYTHON: "C:\\Python27-x64"
# DISTUTILS_USE_SDK: "1"
# - TOXENV: "py35"
# PYTHON: "C:\\Python35-x64"
# DISTUTILS_USE_SDK: "1"
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# - TOXENV: "py36"
# PYTHON: "C:\\Python36-x64"
# DISTUTILS_USE_SDK: "1"
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# - TOXENV: "py37"
# PYTHON: "C:\\Python37-x64"
# DISTUTILS_USE_SDK: "1"
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- TOXENV: "py38"
PYTHON: "C:\\Python38-x64"
DISTUTILS_USE_SDK: "1"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- TOXENV: "py39"
PYTHON: "C:\\Python39-x64"
DISTUTILS_USE_SDK: "1"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
- TOXENV: "py310"
PYTHON: "C:\\Python310-x64"
DISTUTILS_USE_SDK: "1"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
- TOXENV: "py311"
PYTHON: "C:\\Python311-x64"
DISTUTILS_USE_SDK: "1"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
- TOXENV: "py312"
PYTHON: "C:\\Python312-x64"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
DISTUTILS_USE_SDK: "1"
- TOXENV: "cover"
PYTHON: "C:\\Python38-x64"
DISTUTILS_USE_SDK: "1"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
install:
# We need wheel installed to build wheels
- "%PYTHON%\\python.exe -m pip install tox"
build: false
test_script:
# Put your test command here.
# If you don't need to build C extensions on 64-bit Python 3.3 or 3.4,
# you can remove "build.cmd" from the front of the command, as it's
# only needed to support those cases.
# Note that you must use the environment variable %PYTHON% to refer to
# the interpreter you're using - Appveyor does not do anything special
# to put the Python evrsion you want to use on PATH.
- ps: |
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2017")
{
$env:MYSQL_PWD="Password12!"
$cmd = '"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql" -e "create database testqueue;" --user=root'
iex "& $cmd"
}
else
{
$env:MYSQL_PWD="Password12!"
$cmd = '"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -e "create database testqueue;" --user=root'
iex "& $cmd"
}
- |
echo image: %APPVEYOR_BUILD_WORKER_IMAGE%, tox:%TOXENV%
"%PYTHON%\\Scripts\\tox.exe"
#on_success:
# You can use this step to upload your artifacts to a public website.
# See Appveyor's documentation for more details. Or you can simply
# access your wheels from the Appveyor "artifacts" tab for your build.