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

Commit 4a60c8a

Browse files
authored
Fix: vsts integration tests block (#657)
* 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
1 parent 0b675f9 commit 4a60c8a

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.vsts-ci.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: $(Build.SourceBranch)$(Rev:.r)
2+
13
trigger:
24
- master
35

@@ -7,8 +9,8 @@ phases:
79
steps:
810
- task: UsePythonVersion@0
911
inputs:
10-
versionSpec: '3.6 >= 3.5'
11-
addToPath: true
12+
versionSpec: '3.6 >= 3.5'
13+
addToPath: true
1214
architecture: 'x64'
1315

1416
- script: |
@@ -26,17 +28,24 @@ phases:
2628
pylint --jobs 2 --errors-only aztk aztk_cli
2729
condition: succeeded()
2830
displayName: pylint error check
29-
31+
3032
- script: |
3133
pytest --ignore=tests/integration_tests
3234
condition: succeeded()
3335
displayName: unit tests
3436
3537
- script: |
36-
pytest --numprocesses=75
37-
condition: succeeded()
38+
export BATCH_ACCOUNT_RESOURCE_ID=$(BATCH_ACCOUNT_RESOURCE_ID)
39+
export CLIENT_ID=$(CLIENT_ID)
40+
export CREDENTIAL=$(CREDENTIAL)
41+
export ID_RSA=`$(ID_RSA)`
42+
export ID_RSA_PUB=`$(ID_RSA_PUB)`
43+
export STORAGE_ACCOUNT_RESOURCE_ID=$(STORAGE_ACCOUNT_RESOURCE_ID)
44+
export TENANT_ID=$(TENANT_ID)
45+
pytest --numprocesses=70 tests/integration_tests
46+
condition: and(succeeded(), or(startsWith(variables['Build.SourceBranchName'], 'release'), eq(variables['Build.SourceBranchName'], 'master')))
3847
displayName: integration tests
39-
48+
4049
- script: |
4150
pylint --jobs 2 --disable=fixme aztk aztk_cli
4251
continueOnError: true

0 commit comments

Comments
 (0)