-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
69 lines (60 loc) · 2.27 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
# AppVeyor.com is a Continuous Integration service to build and run tests under Windows
build: off
environment:
matrix:
- PYTHON: 2.7
MINICONDA: C:\Miniconda
PYTHON_ARCH: 32
- PYTHON: 3.5
MINICONDA: C:\Miniconda3
PYTHON_ARCH: 32
- PYTHON: 3.6
MINICONDA: C:\Miniconda3
PYTHON_ARCH: 32
- PYTHON: 2.7
MINICONDA: C:\Miniconda
PYTHON_ARCH: 64
- PYTHON: 3.5
MINICONDA: C:\Miniconda3
PYTHON_ARCH: 64
- PYTHON: 3.6
MINICONDA: C:\Miniconda3
PYTHON_ARCH: 64
pypi_password:
secure: S2mZCxm5LzIF4KFDss/f7g==
init:
- "ECHO %PYTHON% %MINICONDA%"
install:
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- "conda create -q -n test-environment python=%PYTHON% numpy scipy matplotlib cython pillow wheel"
- activate test-environment
- conda install --quiet --yes -c menpo vtk
- pip install -r requirements_dev.txt
- python setup.py install
test_script:
- nosetests tests -v -s
after_test:
# This step builds your wheels.
# Again, you only need build.cmd if you're building C extensions for
# 64-bit Python 3.3/3.4. And you need to use %PYTHON% to get the correct
# interpreter
- python setup.py sdist bdist_wheel
artifacts:
# bdist_wheel puts your built wheel in the dist directory
- path: dist\*
deploy_script:
# following https://github.com/AndrewAnnex/SpiceyPy/blob/master/appveyor.yml
- echo "Starting Artifact deployment"
- echo [distutils] > %USERPROFILE%\\.pypirc
- echo index-servers = >> %USERPROFILE%\\.pypirc
- echo pypi >> %USERPROFILE%\\.pypirc
- echo [pypi] >> %USERPROFILE%\\.pypirc
- echo repository=https://pypi.python.org/pypi >> %USERPROFILE%\\.pypirc
- echo username=lheagy >> %USERPROFILE%\\.pypirc
- echo password=%pypi_password% >> %USERPROFILE%\\.pypirc
# deploy on dev or master
- ps: If ($env:APPVEYOR_REPO_TAG -eq "true" ) { Invoke-Expression "twine upload -r pypi --skip-existing dist/*" 2>$null } Else { write-output "Not on a tag, won't deploy to pypi"}
- ps: If ($env:APPVEYOR_REPO_TAG -eq "true" ) { Invoke-Expression "twine upload -r pypi --skip-existing dist/*" 2>$null } Else { write-output "Not on a tag, won't deploy to pypi"}