Browse Source

Pass environment variables to tox

Peter Justin 6 years ago
parent
commit
78b8aa2cde
2 changed files with 1 additions and 8 deletions
  1. 0 7
      .azure-pipelines.yml
  2. 1 1
      tox.ini

+ 0 - 7
.azure-pipelines.yml

@@ -42,13 +42,6 @@ jobs:
         env:
           # Can't define in section 'variables' due it being a secret one
           CODECOV_TOKEN: $(codecov.token)
-          PR: $(system.pullRequest.pullRequestNumber)
-          BRANCH: $(system.pullRequest.sourceBranch)
-          COMMIT: $(system.pullRequest.sourceCommitId)
-          BUILD_ID: $(Build.BuildNumber)
-          BUILD_COMMIT: $(Build.SourceVersion)
-          BUILD_REASON: $(Build.Reason)
-          BUILD_BRANCH: $(Build.SourceBranchName)
 
       - task: PublishTestResults@2
         displayName: Publish test results

+ 1 - 1
tox.ini

@@ -13,6 +13,7 @@ deps =
 setenv =
     COVERAGE_FILE = tests/.coverage.{envname}
     PYTHONDONTWRITEBYTECODE=1
+passenv = TOXENV CI CODECOV_* SYSTEM_* AGENT_* BUILD_*
 commands =
     pytest {toxinidir}/tests {toxinidir}/flaskbb {posargs}
 
@@ -28,7 +29,6 @@ commands =
 [testenv:coverage-ci]
 skip_install = true
 deps = codecov
-passenv = CODECOV_TOKEN
 setenv =
     COVERAGE_FILE = tests/.coverage
 commands =