-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'autorestv3' of https://github.com/Azure/autorest.python …
…into autorestv3 * 'autorestv3' of https://github.com/Azure/autorest.python: LRO Final get default (#502) LRO + Paging tests (#501) Increase XMS test coverage (#500) Paging tests (#499) Re-enable file large test (#498) making empty nextLink none (#497) Add coverage report back (#492) Update to last m4 to fix bug 93 (#495) updated m4 to 4.10.240 (#488) add check for models and enums having same name (#491) Fix error in multiapi script that is removing _version file if it already exists (#490) Optional constant params in signature (#489) Add CI configuration for publishing v5 development releases Get azure-mgmt-core from PyPI (#481) Revert "making criterion to initialize models same as importing models in operation groups" (#483)
- Loading branch information
Showing
51 changed files
with
635 additions
and
848 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
trigger: none | ||
pr: none | ||
|
||
variables: | ||
NodeVersion: '12.x' | ||
PythonVersion: '3.6' | ||
TestFolder: '$(Build.SourcesDirectory)/test/' | ||
|
||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
|
||
steps: | ||
- task: NodeTool@0 | ||
displayName: 'Install Node.js $(NodeVersion)' | ||
inputs: | ||
versionSpec: '$(NodeVersion)' | ||
|
||
- task: UsePythonVersion@0 | ||
displayName: 'Use Python 3.6' | ||
inputs: | ||
versionSpec: 3.6 | ||
|
||
- script: | | ||
cd $(Build.SourcesDirectory) | ||
pip install -r dev_requirements.txt | ||
npm install -g autorest | ||
npm install | ||
displayName: 'Prepare Environment for Generation' | ||
- script: | | ||
pylint autorest | ||
displayName: 'Pylint' | ||
- script: | | ||
mypy autorest | ||
displayName: 'Mypy' | ||
- script: | | ||
pytest test/unittests | ||
displayName: 'Unit tests' | ||
- script: | | ||
inv regenerate | ||
displayName: 'Regenerate Code' | ||
- script: | | ||
pip install tox coverage==4.5.4 | ||
displayName: 'Install Env Specific Reqs in Target PyVersion $(PythonVersion)' | ||
- script: | | ||
cd $(TestFolder)/azure | ||
tox -e ci | ||
displayName: 'Execute "azure" Tests - Python $(PythonVersion)' | ||
- script : | | ||
export DEV_VERSION=$(node -p -e "require('./package.json').version")-dev.$BUILD_BUILDNUMBER | ||
npm version --no-git-tag-version $DEV_VERSION | ||
npm pack | ||
npx publish-release --token $(azuresdk-github-pat) --repo autorest.python --owner azure --name "Autorest for Python v$DEV_VERSION" --tag v$DEV_VERSION --notes='Preview version of autorest for python v5' --prerelease --editRelease false --assets autorest-python-$DEV_VERSION.tgz --target_commitish $(Build.SourceBranchName) | ||
displayName: 'Publish development release' |
Oops, something went wrong.