mirror of
https://github.com/Jackett/Jackett
synced 2025-01-03 13:46:10 +00:00
This commit is contained in:
parent
6419c8c335
commit
ff0e9546d9
2 changed files with 41 additions and 2 deletions
|
@ -260,7 +260,8 @@ stages:
|
||||||
displayName: Code Style Compliance
|
displayName: Code Style Compliance
|
||||||
dependsOn: []
|
dependsOn: []
|
||||||
jobs:
|
jobs:
|
||||||
- job: Linting
|
- job: Linting_Dotnet
|
||||||
|
displayName: Linting Dotnet
|
||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-latest
|
vmImage: ubuntu-latest
|
||||||
workspace:
|
workspace:
|
||||||
|
@ -298,6 +299,26 @@ stages:
|
||||||
dotnet-format --dry-run --check --verbosity diagnostic --folder ./src/Jackett.Tray
|
dotnet-format --dry-run --check --verbosity diagnostic --folder ./src/Jackett.Tray
|
||||||
dotnet-format --dry-run --check --verbosity diagnostic --folder ./src/Jackett.Updater
|
dotnet-format --dry-run --check --verbosity diagnostic --folder ./src/Jackett.Updater
|
||||||
|
|
||||||
|
- job: Linting_YAML
|
||||||
|
displayName: Linting YAML
|
||||||
|
pool:
|
||||||
|
vmImage: ubuntu-latest
|
||||||
|
workspace:
|
||||||
|
clean: all
|
||||||
|
steps:
|
||||||
|
- checkout: self
|
||||||
|
|
||||||
|
- task: UsePythonVersion@0
|
||||||
|
displayName: Install Python
|
||||||
|
inputs:
|
||||||
|
versionSpec: '3.8'
|
||||||
|
|
||||||
|
- script: pip install yamllint
|
||||||
|
displayName: Install yamllint
|
||||||
|
|
||||||
|
- script: yamllint -c ./yamllint.yml ./src/Jackett.Common/Definitions/
|
||||||
|
displayName: Lint YAML
|
||||||
|
|
||||||
- stage: UnitTestJackett
|
- stage: UnitTestJackett
|
||||||
displayName: Unit Tests
|
displayName: Unit Tests
|
||||||
dependsOn: CodeStyle
|
dependsOn: CodeStyle
|
||||||
|
@ -399,7 +420,9 @@ stages:
|
||||||
|
|
||||||
- stage: Integration
|
- stage: Integration
|
||||||
displayName: Integration Tests
|
displayName: Integration Tests
|
||||||
dependsOn: BuildJackett
|
dependsOn:
|
||||||
|
- BuildJackett
|
||||||
|
- CodeStyle
|
||||||
jobs:
|
jobs:
|
||||||
- job: Selenium
|
- job: Selenium
|
||||||
workspace:
|
workspace:
|
||||||
|
|
16
yamllint.yml
Normal file
16
yamllint.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
#
|
||||||
|
# doc https://yamllint.readthedocs.io/en/stable/
|
||||||
|
#
|
||||||
|
# run in local (linux)
|
||||||
|
# install => sudo python3 -m pip install yamllint
|
||||||
|
# run => yamllint -s -c ./yamllint.yml ./src/Jackett.Common/Definitions/
|
||||||
|
#
|
||||||
|
extends: default
|
||||||
|
|
||||||
|
rules:
|
||||||
|
document-start:
|
||||||
|
level: error
|
||||||
|
line-length: disable
|
||||||
|
key-duplicates: disable
|
||||||
|
truthy: disable
|
Loading…
Reference in a new issue