[deploy] branch check

This commit is contained in:
mzwiessele 2016-07-29 13:57:48 +01:00
parent d6cb2a704b
commit 969fca1c3d

View file

@ -8,15 +8,8 @@ environment:
- PYTHON_VERSION: 3.5 - PYTHON_VERSION: 3.5
MINICONDA: C:\Miniconda35-x64 MINICONDA: C:\Miniconda35-x64
branches:
only:
- deploy
- devel
except:
- gh-pages
install: install:
- echo %branch%
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%" - "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
- conda config --set always_yes yes --set changeps1 no - conda config --set always_yes yes --set changeps1 no
- conda update -q conda - conda update -q conda
@ -54,28 +47,52 @@ artifacts:
# bdist_wheel puts your built wheel in the dist directory # bdist_wheel puts your built wheel in the dist directory
- path: dist\* - path: dist\*
deploy_script:
- echo [distutils] > %USERPROFILE%\\.pypirc -
- echo index-servers = >> %USERPROFILE%\\.pypirc branches:
- echo pypi >> %USERPROFILE%\\.pypirc only:
- echo test >> %USERPROFILE%\\.pypirc - devel
- echo[ configuration: Test
- echo [pypi] >> %USERPROFILE%\\.pypirc deploy_script:
- echo username:maxz >> %USERPROFILE%\\.pypirc - echo [distutils] > %USERPROFILE%\\.pypirc
- echo[ - echo index-servers = >> %USERPROFILE%\\.pypirc
- echo [test] >> %USERPROFILE%\\.pypirc - echo pypi >> %USERPROFILE%\\.pypirc
- echo repository:https://testpypi.python.org/pypi >> %USERPROFILE%\\.pypirc - echo test >> %USERPROFILE%\\.pypirc
- echo username:maxz >> %USERPROFILE%\\.pypirc - echo[
#- twine upload -r test -p %pip_access% dist/* - echo [pypi] >> %USERPROFILE%\\.pypirc
- twine upload -p %pip_access% dist/* - echo username:maxz >> %USERPROFILE%\\.pypirc
- echo[
- echo [test] >> %USERPROFILE%\\.pypirc
- echo repository:https://testpypi.python.org/pypi >> %USERPROFILE%\\.pypirc
- echo username:maxz >> %USERPROFILE%\\.pypirc
- twine upload -r test -p %pip_access% dist/*
deploy: -
- provider: GitHub branches:
release: GPy-v$(gpy_version) only:
description: 'GPy windows install' - deploy
artifact: dist/*.exe # upload wininst to GitHub configuration: Release
draft: false deploy:
prerelease: false - provider: GitHub
on: release: GPy-v$(gpy_version)
branch: deploy # release from deploy branch only description: 'GPy windows install'
appveyor_repo_tag: true # deploy on tag push only artifact: dist/*.exe # upload wininst to GitHub
draft: false
prerelease: false
on:
branch: deploy # release from deploy branch only
appveyor_repo_tag: true # deploy on tag push only
deploy_script:
- echo [distutils] > %USERPROFILE%\\.pypirc
- echo index-servers = >> %USERPROFILE%\\.pypirc
- echo pypi >> %USERPROFILE%\\.pypirc
- echo test >> %USERPROFILE%\\.pypirc
- echo[
- echo [pypi] >> %USERPROFILE%\\.pypirc
- echo username:maxz >> %USERPROFILE%\\.pypirc
- echo[
- echo [test] >> %USERPROFILE%\\.pypirc
- echo repository:https://testpypi.python.org/pypi >> %USERPROFILE%\\.pypirc
- echo username:maxz >> %USERPROFILE%\\.pypirc
- twine upload -p %pip_access% dist/*