Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
Split out Sphinx into separate job.
Corrected some errors in pipeline yaml
  • Loading branch information
ianhelle committed Aug 8, 2023
1 parent c66d6f7 commit 4aa317f
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,6 @@ stages:
python -m pip install -r requirements-all.txt
python -m pip install -e .
displayName: 'Install package and dependencies'
- script: |
python -m pip install sphinx readthedocs-sphinx-ext>=2.1.4 sphinx-rtd-theme>=1.0.0
python -m pip install -r $(Build.SourcesDirectory)/docs/requirements.txt
make html
env:
SPHINX_NOGEN: "true"
workingDirectory: docs
condition: eq(variables.imageName, 'windows-latest')
displayName: 'Sphinx Read the Docs build'
- script: |
mkdir ~/.msticpy
mkdir ~/.msticpy/mordor
Expand Down Expand Up @@ -127,12 +118,23 @@ stages:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/htmlcov'
- job: Sphinx-Docs
pool:
vmImage: "ubuntu-latest"
python.version: '3.8'
steps:
- script: |
python -m pip install sphinx readthedocs-sphinx-ext>=2.1.4 sphinx-rtd-theme>=1.0.0
python -m pip install -r $(Build.SourcesDirectory)/docs/requirements.txt
make html
env:
SPHINX_NOGEN: "true"
workingDirectory: docs
condition: eq(variables.imageName, 'windows-latest')
displayName: 'Sphinx Read the Docs build'
- stage: SecurityChecks
# Pipeline
displayName: Azure pipeline, security and component governance tools
dependsOn:
- PythonTests
# - PythonLinters
variables:
# This is run explicitly, so does not need to be auto-injected
skipComponentGovernanceDetection: true
Expand Down Expand Up @@ -189,7 +191,7 @@ stages:
testRunTitle: 'Python $(python.version)-sec'
- job: AntiMalware
pool:
vmImage: ""
vmImage: "windows-latest"
steps:
- task: AntiMalware@3
inputs:
Expand Down Expand Up @@ -227,7 +229,7 @@ stages:
testRunTitle: 'Python $(python.version)-antimalware'
- job: OWASPCheck
pool:
vmImage: "ubuntu-latest"
vmImage: "windows-latest"
steps:
- task: dependency-check-build-task@5
displayName: 'OWASP Dependency Check'
Expand Down

0 comments on commit 4aa317f

Please sign in to comment.