forked from mabuchilab/Instrumental
-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
50 lines (40 loc) · 1.53 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
build: off
environment:
matrix:
- PYTHON_VERSION: 2.7
MINICONDA: C:\Miniconda
- PYTHON_VERSION: 3.5
MINICONDA: C:\Miniconda3
- PYTHON_VERSION: 3.6
MINICONDA: C:\Miniconda3
PYPIPASSWORD:
secure: ZTf9RSUmSv3iJLQGIvdJCJ/k5tSESQDomCCdahYSsDs=
init:
- "ECHO %PYTHON_VERSION% %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-env python=%PYTHON_VERSION% numpy scipy"
- activate test-env
- pip install pint future
- pip install .
test_script:
- conda install pytest
- py.test
deploy_script:
- pip install twine
- 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 = natezb >> %USERPROFILE%\\.pypirc
- echo password = %PYPIPASSWORD% >> %USERPROFILE%\\.pypirc
# Ensure setup.py finds .pypirc
- set HOME=%USERPROFILE%
# Don't do an sdist, since TravisCI handles that
- python setup.py bdist_wheel
# Only upload if tagged
- if "%APPVEYOR_REPO_TAG%"=="true" ( twine upload --skip-existing -r pypi dist/* ) else ( echo "Not deploying untagged commit" )