This repository has been archived by the owner on Dec 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
appveyor.yml
96 lines (91 loc) · 2.52 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
# Configure.
services:
- mysql
- postgresql
# Environment and matrix.
environment:
PATH: C:\%PYTHON%;C:\%PYTHON%\Scripts;C:\Program Files\MySQL\MySQL Server 5.7\bin;C:\Program Files\PostgreSQL\9.5\bin;%PATH%
PGPASSWORD: Password12!
PYTHON: Python34
matrix:
- TOX_ENV: lint
BROKER: sqlite
- TOX_ENV: py34
BROKER: sqlite
- TOX_ENV: py33
BROKER: sqlite
- TOX_ENV: py27
BROKER: sqlite
- TOX_ENV: py
PYTHON: Python34-x64
BROKER: sqlite
- TOX_ENV: py
PYTHON: Python33-x64
BROKER: sqlite
- TOX_ENV: py
PYTHON: Python27-x64
BROKER: sqlite
- TOX_ENV: lint
BROKER: mysql
- TOX_ENV: py34
BROKER: mysql
- TOX_ENV: py33
BROKER: mysql
- TOX_ENV: py27
BROKER: mysql
- TOX_ENV: py
PYTHON: Python34-x64
BROKER: mysql
- TOX_ENV: py
PYTHON: Python33-x64
BROKER: mysql
- TOX_ENV: py
PYTHON: Python27-x64
BROKER: mysql
- TOX_ENV: lint
BROKER: postgres
- TOX_ENV: py34
BROKER: postgres
- TOX_ENV: py33
BROKER: postgres
- TOX_ENV: py27
BROKER: postgres
- TOX_ENV: py
PYTHON: Python34-x64
BROKER: postgres
- TOX_ENV: py
PYTHON: Python33-x64
BROKER: postgres
- TOX_ENV: py
PYTHON: Python27-x64
BROKER: postgres
- TOX_ENV: lint
BROKER: redis
- TOX_ENV: py34
BROKER: redis
- TOX_ENV: py33
BROKER: redis
- TOX_ENV: py27
BROKER: redis
- TOX_ENV: py
PYTHON: Python34-x64
BROKER: redis
- TOX_ENV: py
PYTHON: Python33-x64
BROKER: redis
- TOX_ENV: py
PYTHON: Python27-x64
BROKER: redis
# Run.
build_script: pip install tox
after_build:
- IF %BROKER% EQU redis cinst redis-64
- IF %BROKER% EQU redis redis-server --service-install
- IF %BROKER% EQU redis redis-server --service-start
- IF %BROKER% EQU mysql mysql -u root -p"Password12!" -e "CREATE DATABASE flask_celery_helper_test;"
- IF %BROKER% EQU mysql mysql -u root -p"Password12!" -e "GRANT ALL PRIVILEGES ON flask_celery_helper_test.* TO 'user'@'localhost' IDENTIFIED BY 'pass';"
- IF %BROKER% EQU postgres psql -U postgres -c "CREATE DATABASE flask_celery_helper_test;"
- IF %BROKER% EQU postgres psql -U postgres -c "CREATE USER user1 WITH PASSWORD 'pass';"
- IF %BROKER% EQU postgres psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE flask_celery_helper_test TO user1;"
test_script: tox -e %TOX_ENV%
on_success: IF %TOX_ENV% NEQ lint pip install codecov & codecov