Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Fix: vsts integration tests block #657

Merged
merged 22 commits into from
Sep 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .vsts-ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: $(Build.SourceBranch)$(Rev:.r)

trigger:
- master

Expand All @@ -7,8 +9,8 @@ phases:
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6 >= 3.5'
addToPath: true
versionSpec: '3.6 >= 3.5'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we then maybe make a matrix to test 3.5 and 3.6 instead of that?

addToPath: true
architecture: 'x64'

- script: |
Expand All @@ -26,17 +28,24 @@ phases:
pylint --jobs 2 --errors-only aztk aztk_cli
condition: succeeded()
displayName: pylint error check

- script: |
pytest --ignore=tests/integration_tests
condition: succeeded()
displayName: unit tests

- script: |
pytest --numprocesses=75
condition: succeeded()
export BATCH_ACCOUNT_RESOURCE_ID=$(BATCH_ACCOUNT_RESOURCE_ID)
export CLIENT_ID=$(CLIENT_ID)
export CREDENTIAL=$(CREDENTIAL)
export ID_RSA=`$(ID_RSA)`
export ID_RSA_PUB=`$(ID_RSA_PUB)`
export STORAGE_ACCOUNT_RESOURCE_ID=$(STORAGE_ACCOUNT_RESOURCE_ID)
export TENANT_ID=$(TENANT_ID)
pytest --numprocesses=70 tests/integration_tests
condition: and(succeeded(), or(startsWith(variables['Build.SourceBranchName'], 'release'), eq(variables['Build.SourceBranchName'], 'master')))
displayName: integration tests

- script: |
pylint --jobs 2 --disable=fixme aztk aztk_cli
continueOnError: true
Expand Down