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

Commit

Permalink
Fix: vsts integration tests block (#657)
Browse files Browse the repository at this point in the history
* only run integration tests in integration tests block

* update vsts build

* whitespace

* whitespace

* syntax

* syntax

* fix condition variable reference

* fix

* update name and trigger

* change from preview queue to ga

* upgrade pip

* add setuptools

* add pip upgrade step

* debug statement

* debug

* revert to preview

* change how env vars are referenced

* debug statement

* add missing key

* support multiline env vars

* change process value to 70

* only run integration on master or release
  • Loading branch information
jafreck authored Sep 20, 2018
1 parent 0b675f9 commit 4a60c8a
Showing 1 changed file with 15 additions and 6 deletions.
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'
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

0 comments on commit 4a60c8a

Please sign in to comment.