-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
57 lines (49 loc) · 1.72 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
build: false # Tell appveyor to not use msbuild
environment:
matrix:
- PYTHON_VERSION: 2.7
MINICONDA: C:\Miniconda
PYTHON_ARCH: "32"
- PYTHON_VERSION: 2.7
MINICONDA: C:\Miniconda-x64
PYTHON_ARCH: "64"
- PYTHON_VERSION: 3.7
MINICONDA: C:\Miniconda37
PYTHON_ARCH: "32"
- PYTHON_VERSION: 3.7
MINICONDA: C:\Miniconda37-x64
PYTHON_ARCH: "64"
PYPI_PASSWORD:
secure: Zw0hha0+/4KCvYqgBYpOHGbrc9jrvtHq8N0xXkWSvLk=
# platform:
# - x64
# - x86
init:
# - ps: Start-FileDownload 'http://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi' C:\VCForPython27.msi; echo "Done"
# - cmd: msiexec /i C:\VCForPython27.msi /quiet /qn
install:
# Miniconda setup + necessary external packages
- set PATH=%MINICONDA%;%MINICONDA%\Scripts;%MINICONDA%\Library\bin;%PATH%
- conda update --yes conda
- conda info -a
- conda install --yes cython numpy pytables nose twine
- pip install -e .
- conda list
test_script:
- nosetests
after_test:
- python setup.py bdist_wheel
- ps: rm dist/*.egg
artifacts:
- path: dist\*
name: pypiartifacts
deploy_script:
- echo "Starting deployment"
- echo [distutils] > %USERPROFILE%\\.pypirc
- echo index-servers = >> %USERPROFILE%\\.pypirc
- echo pypi >> %USERPROFILE%\\.pypirc
- echo [pypi] >> %USERPROFILE%\\.pypirc
- echo username=laborleben >> %USERPROFILE%\\.pypirc
- echo password=%PYPI_PASSWORD% >> %USERPROFILE%\\.pypirc
- ps: If ($env:APPVEYOR_REPO_TAG -eq "true" -And $env:APPVEYOR_REPO_BRANCH -eq "master") { Invoke-Expression "twine upload --skip-existing dist/*.whl" 2>$null } Else { write-output "Not on a tag on master, won't deploy"}
- echo "Finished deployment"