diff --git a/appveyor.yml b/appveyor.yml index c4983d85..7b2526bb 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,6 @@ environment: + pip_upload: + secure: 8/ZjXFwtd1S7ixd7PJOpptupKKEDhm2da/q3unabJ00= matrix: - PYTHON_VERSION: 2.7 @@ -20,9 +22,9 @@ install: - "conda create -q -n build-environment python=%PYTHON_VERSION% numpy scipy matplotlib" - activate build-environment # We need wheel installed to build wheels - - python -m pip install wheel" + - python -m pip install wheel # GPy needs paramz - - python -m pip install paramz" + - python -m pip install paramz build: off @@ -35,6 +37,7 @@ test_script: # the interpreter you're using - Appveyor does not do anything special # to put the Python evrsion you want to use on PATH. #- "build.cmd %PYTHON%\\python.exe setup.py test" + - "python setup.py test" after_test: # This step builds your wheels. @@ -44,6 +47,12 @@ artifacts: # bdist_wheel puts your built wheel in the dist directory - path: dist\* +deploy_script: + - "echo [pypi] > %USERPROFILE%\\.pypirc" + - "echo username: user >> %USERPROFILE%\\.pypirc" + - "echo password: %pip_upload% >> %USERPROFILE%\\.pypirc" + - python setup.py bdist_wheel upload + #on_success: # You can use this step to upload your artifacts to a public website. # See Appveyor's documentation for more details. Or you can simply