mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-29 15:59:41 +02:00
[deploy] branch check
This commit is contained in:
parent
d6cb2a704b
commit
969fca1c3d
1 changed files with 48 additions and 31 deletions
79
appveyor.yml
79
appveyor.yml
|
|
@ -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
|
|
||||||
- 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 -r test -p %pip_access% dist/*
|
|
||||||
- twine upload -p %pip_access% dist/*
|
|
||||||
|
|
||||||
deploy:
|
-
|
||||||
- provider: GitHub
|
branches:
|
||||||
release: GPy-v$(gpy_version)
|
only:
|
||||||
description: 'GPy windows install'
|
- devel
|
||||||
artifact: dist/*.exe # upload wininst to GitHub
|
configuration: Test
|
||||||
draft: false
|
deploy_script:
|
||||||
prerelease: false
|
- echo [distutils] > %USERPROFILE%\\.pypirc
|
||||||
on:
|
- echo index-servers = >> %USERPROFILE%\\.pypirc
|
||||||
branch: deploy # release from deploy branch only
|
- echo pypi >> %USERPROFILE%\\.pypirc
|
||||||
appveyor_repo_tag: true # deploy on tag push only
|
- 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 -r test -p %pip_access% dist/*
|
||||||
|
|
||||||
|
|
||||||
|
-
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- deploy
|
||||||
|
configuration: Release
|
||||||
|
deploy:
|
||||||
|
- provider: GitHub
|
||||||
|
release: GPy-v$(gpy_version)
|
||||||
|
description: 'GPy windows install'
|
||||||
|
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/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue