Add AppVeyor build
- Automated site extensions nuget builds - Resolves #98
This commit is contained in:
Родитель
745082029f
Коммит
7ed0db7f78
|
@ -7,3 +7,4 @@
|
|||
*.ps1 text eol=crlf
|
||||
*.xdt text eol=crlf
|
||||
*.nuspec text eol=crlf
|
||||
appveyor.yml text eol=crlf
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
- Automatic site-extensions NuGet package updates with tagged releases via
|
||||
AppVeyor builds
|
||||
|
||||
### Changed
|
||||
- Python 3.3 is no longer supported (due to `cryptography` dropping support
|
||||
for 3.3).
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[![Build Status](https://travis-ci.org/Azure/batch-shipyard.svg?branch=master)](https://travis-ci.org/Azure/batch-shipyard)
|
||||
[![Build status](https://ci.appveyor.com/api/projects/status/3a0j0gww57o6nkpw/branch/master?svg=true)](https://ci.appveyor.com/project/alfpark/batch-shipyard)
|
||||
[![Docker Pulls](https://img.shields.io/docker/pulls/alfpark/batch-shipyard.svg)](https://hub.docker.com/r/alfpark/batch-shipyard)
|
||||
[![Image Layers](https://images.microbadger.com/badges/image/alfpark/batch-shipyard:cli-latest.svg)](http://microbadger.com/images/alfpark/batch-shipyard)
|
||||
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
version: '{branch}-{build}'
|
||||
|
||||
clone_depth: 5
|
||||
|
||||
cache:
|
||||
- '%LOCALAPPDATA%\pip\Cache'
|
||||
|
||||
environment:
|
||||
matrix:
|
||||
- PYTHON: "C:\\Python27-x64"
|
||||
PYTHON_VERSION: "2.7"
|
||||
PYTHON_ARCH: "64"
|
||||
|
||||
- PYTHON: "C:\\Python36-x64"
|
||||
PYTHON_VERSION: "3.6"
|
||||
PYTHON_ARCH: "64"
|
||||
|
||||
init:
|
||||
- echo %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%
|
||||
|
||||
install:
|
||||
- pip install -r requirements.txt
|
||||
- pip install flake8
|
||||
|
||||
build: off
|
||||
|
||||
test_script:
|
||||
- flake8 --statistics shipyard.py convoy\\*.py
|
||||
- IF "%PYTHON_VERSION%"=="3.6" (
|
||||
flake8 --statistics cascade\\*.py tfm\\*.py rjm\\*.py
|
||||
)
|
||||
|
||||
after_test:
|
||||
- echo is commit tag %APPVEYOR_REPO_TAG% name %APPVEYOR_REPO_TAG_NAME%
|
||||
- IF "%APPVEYOR_REPO_TAG%"=="true" IF "%PYTHON_VERSION%"=="3.6" (
|
||||
nuget pack site-extension\\batch-shipyard.nuspec -Version %APPVEYOR_REPO_TAG_NAME% &&
|
||||
7z l batch-shipyard.*.nupkg &&
|
||||
appveyor PushArtifact batch-shipyard.%APPVEYOR_REPO_TAG_NAME%.nupkg
|
||||
)
|
||||
|
||||
deploy:
|
||||
- provider: NuGet
|
||||
server: https://www.siteextensions.net
|
||||
api_key:
|
||||
secure: 7rnRHiBwGPW086Rgcn+acev2aG53VmVFnoklGqr589FJtHaMfJBL8gz/R35ZLh3+
|
||||
skip_symbols: true
|
||||
artifact: /.*\.nupkg/
|
||||
on:
|
||||
appveyor_repo_tag: true
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>batch-shipyard</id>
|
||||
<version>2.6.0.4</version>
|
||||
<version>0.0.0</version>
|
||||
<title>Batch Shipyard</title>
|
||||
<authors>Fred Park</authors>
|
||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||
|
|
Загрузка…
Ссылка в новой задаче