forked from quantmind/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
43 lines (35 loc) · 1.12 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
environment:
PYPI_PASSWD:
secure: w16EmxgfwQdS1FLB/PCWQA==
matrix:
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python36-x64"
branches:
only:
- release
- deploy
init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
install:
- "ci/build.cmd %PYTHON%\\python.exe -m pip install -U wheel setuptools"
- "ci/build.cmd %PYTHON%\\python.exe -m pip install -r requirements/test-win.txt"
- cmd: nuget install redis-64 -excludeversion
- cmd: redis-64\tools\redis-server.exe --service-install
- cmd: redis-64\tools\redis-server.exe --service-start
build: false
test_script:
- ps: >-
if($env:appveyor_repo_branch -eq 'release') {
Invoke-Expression "ci/build.cmd $env:PYTHON\\python.exe setup.py test --sequential"
}
after_test:
- "ci/build.cmd %PYTHON%\\python.exe setup.py sdist bdist_wheel"
artifacts:
- path: dist\*
deploy_script:
- ps: >-
if($env:appveyor_repo_branch -eq 'deploy') {
Invoke-Expression "$env:PYTHON\\python.exe -m twine upload dist/* --username lsbardel --password $env:PYPI_PASSWD"
}