зеркало из https://github.com/Azure/iotedgedev.git
Add VSTS CI Support (#280)
* VSTS setup test 1 * Increase parallel * Add VSTS Badge to readme
This commit is contained in:
Родитель
8925d1c53f
Коммит
5c4652b20e
|
@ -8,8 +8,9 @@
|
|||
"stopOnEntry": true,
|
||||
"module": "iotedgedev.cli",
|
||||
"args": [
|
||||
"azure",
|
||||
"--update-dotenv"
|
||||
"solution",
|
||||
"new",
|
||||
"test_solution"
|
||||
],
|
||||
"debugOptions": [
|
||||
"RedirectOutput"
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
# Python package
|
||||
# Create and test a Python package on multiple Python versions.
|
||||
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
|
||||
# https://docs.microsoft.com/vsts/pipelines/languages/python
|
||||
|
||||
phases:
|
||||
|
||||
- phase: 'Test'
|
||||
queue:
|
||||
name: 'Hosted Linux Preview'
|
||||
parallel: 4
|
||||
matrix:
|
||||
Python27:
|
||||
python.version: '2.7'
|
||||
Python35:
|
||||
python.version: '3.5'
|
||||
Python36:
|
||||
python.version: '3.6'
|
||||
Python37:
|
||||
python.version: '3.7'
|
||||
|
||||
steps:
|
||||
- task: UsePythonVersion@0
|
||||
inputs:
|
||||
versionSpec: '$(python.version)'
|
||||
architecture: 'x64'
|
||||
|
||||
- script: python -m pip install --upgrade pip && pip install -r requirements_dev.txt
|
||||
displayName: 'Install dependencies'
|
||||
|
||||
- script: |
|
||||
pytest -m unit --junitxml=junit/test-results.xml
|
||||
displayName: 'pytest'
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testResultsFiles: '**/test-results.xml'
|
||||
testRunTitle: 'Python $(python.version)'
|
||||
condition: succeededOrFailed()
|
|
@ -4,7 +4,8 @@
|
|||
## ETA: Mid-August
|
||||
## PLEASE WATCH THIS REPO FOR NOTIFICATIONS
|
||||
|
||||
[![Build Status](https://travis-ci.org/Azure/iotedgedev.svg?branch=master)](https://travis-ci.org/Azure/iotedgedev)
|
||||
[![Travis Build Status](https://travis-ci.org/Azure/iotedgedev.svg?branch=master)](https://travis-ci.org/Azure/iotedgedev)
|
||||
[![VSTS Build Status](https://iotedgedev.visualstudio.com/iotedgedev-main/_apis/build/status/iotedgedev-master-ci)](https://iotedgedev.visualstudio.com/iotedgedev-main/_build/latest?definitionId=6)
|
||||
|
||||
The **Azure IoT Edge Dev Tool** greatly simplifies [Azure IoT Edge](https:/azure.microsoft.com/en-us/services/iot-edge/) development down to simple commands driven by Environment Variables.
|
||||
|
||||
|
|
|
@ -13,6 +13,4 @@ azure-cli-cloud
|
|||
iotedgehubdev
|
||||
six
|
||||
applicationinsights
|
||||
commentjson
|
||||
|
||||
|
||||
commentjson
|
|
@ -1,3 +1,4 @@
|
|||
-r requirements.txt
|
||||
pip
|
||||
bumpversion==0.5.3
|
||||
wheel==0.30.0
|
||||
|
@ -8,4 +9,7 @@ coverage==4.1
|
|||
Sphinx==1.4.8
|
||||
cryptography
|
||||
cookiecutter
|
||||
PyYAML
|
||||
PyYAML
|
||||
pylint
|
||||
pytest
|
||||
setuptools
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
azure-cli
|
22
setup.py
22
setup.py
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""The setup script."""
|
||||
import atexit
|
||||
from subprocess import check_call
|
||||
|
||||
|
@ -11,7 +10,7 @@ from setuptools.command.install import install
|
|||
|
||||
|
||||
def _execute():
|
||||
check_call("pip install azure-cli --no-deps".split())
|
||||
check_call('pip install azure-cli --no-deps'.split())
|
||||
|
||||
|
||||
class PostInstall(install):
|
||||
|
@ -25,10 +24,6 @@ class PostDevelop(develop):
|
|||
atexit.register(_execute)
|
||||
develop.run(self)
|
||||
|
||||
|
||||
# with open('README.rst') as readme_file:
|
||||
# readme = readme_file.read()
|
||||
|
||||
with open('HISTORY.rst') as history_file:
|
||||
history = history_file.read()
|
||||
|
||||
|
@ -61,10 +56,9 @@ test_requirements = [
|
|||
setup(
|
||||
name='iotedgedev',
|
||||
version='0.81.0',
|
||||
description="The Azure IoT Edge Dev Tool greatly simplifies the IoT Edge development process by automating many routine manual tasks, "
|
||||
"such as building, deploying, pushing modules and configuring the IoT Edge Runtime.",
|
||||
long_description="See https://github.com/azure/iotedgedev for usage instructions.",
|
||||
author="Jon Gallant",
|
||||
description='The Azure IoT Edge Dev Tool greatly simplifies the IoT Edge development process by automating many routine manual tasks, such as building, deploying, pushing modules and configuring the IoT Edge Runtime.',
|
||||
long_description='See https://github.com/azure/iotedgedev for usage instructions.',
|
||||
author='Jon Gallant',
|
||||
author_email='info@jongallant.com',
|
||||
url='https://github.com/azure/iotedgedev',
|
||||
packages=find_packages(include=['iotedgedev']),
|
||||
|
@ -75,7 +69,7 @@ setup(
|
|||
},
|
||||
include_package_data=True,
|
||||
install_requires=requirements,
|
||||
license="MIT license",
|
||||
license='MIT license',
|
||||
zip_safe=False,
|
||||
keywords='azure iot edge dev tool',
|
||||
classifiers=[
|
||||
|
@ -83,13 +77,9 @@ setup(
|
|||
'Intended Audience :: Developers',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
'Natural Language :: English',
|
||||
"Programming Language :: Python :: 2",
|
||||
'Programming Language :: Python :: 2.6',
|
||||
'Programming Language :: Python :: 2',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
'Programming Language :: Python :: 3.6'
|
||||
],
|
||||
test_suite='tests',
|
||||
|
|
Загрузка…
Ссылка в новой задаче