|
|
|
@ -27,6 +27,10 @@ trigger:
|
|
|
|
|
include:
|
|
|
|
|
- develop
|
|
|
|
|
- master
|
|
|
|
|
paths:
|
|
|
|
|
exclude:
|
|
|
|
|
- .github
|
|
|
|
|
- src/Lidarr.Api.*/openapi.json
|
|
|
|
|
|
|
|
|
|
pr:
|
|
|
|
|
branches:
|
|
|
|
@ -34,6 +38,7 @@ pr:
|
|
|
|
|
- develop
|
|
|
|
|
paths:
|
|
|
|
|
exclude:
|
|
|
|
|
- .github
|
|
|
|
|
- src/NzbDrone.Core/Localization/Core
|
|
|
|
|
- src/Lidarr.Api.*/openapi.json
|
|
|
|
|
|
|
|
|
@ -392,6 +397,7 @@ stages:
|
|
|
|
|
displayName: Unit Tests
|
|
|
|
|
dependsOn: Build_Backend
|
|
|
|
|
condition: succeeded()
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
- job: Prepare
|
|
|
|
|
pool:
|
|
|
|
@ -459,7 +465,7 @@ stages:
|
|
|
|
|
- bash: |
|
|
|
|
|
chmod a+x _tests/fpcalc
|
|
|
|
|
displayName: Make fpcalc Executable
|
|
|
|
|
condition: and(succeeded(), or(eq(variables['osName'], 'Mac'), eq(variables['testName'], 'linux-x64')))
|
|
|
|
|
condition: and(succeeded(), and(ne(variables['osName'], 'Windows'), ne(variables['poolName'], 'FreeBSD')))
|
|
|
|
|
- bash: find ${TESTSFOLDER} -name "Lidarr.Test.Dummy" -exec chmod a+x {} \;
|
|
|
|
|
displayName: Make Test Dummy Executable
|
|
|
|
|
condition: and(succeeded(), ne(variables['osName'], 'Windows'))
|
|
|
|
@ -518,9 +524,11 @@ stages:
|
|
|
|
|
artifactName: $(artifactName)
|
|
|
|
|
targetPath: $(testsFolder)
|
|
|
|
|
- bash: |
|
|
|
|
|
find ${TESTSFOLDER} -name "Lidarr.Test.Dummy" -exec chmod a+x {} \;
|
|
|
|
|
chmod a+x _tests/fpcalc
|
|
|
|
|
displayName: Make fpcalc and Test Dummy Executable
|
|
|
|
|
displayName: Make fpcalc Executable
|
|
|
|
|
condition: and(succeeded(), ne(variables['osName'], 'Windows'))
|
|
|
|
|
- bash: find ${TESTSFOLDER} -name "Lidarr.Test.Dummy" -exec chmod a+x {} \;
|
|
|
|
|
displayName: Make Test Dummy Executable
|
|
|
|
|
condition: and(succeeded(), ne(variables['osName'], 'Windows'))
|
|
|
|
|
- bash: |
|
|
|
|
|
chmod a+x ${TESTSFOLDER}/test.sh
|
|
|
|
@ -576,6 +584,7 @@ stages:
|
|
|
|
|
-e POSTGRES_PASSWORD=lidarr \
|
|
|
|
|
-e POSTGRES_USER=lidarr \
|
|
|
|
|
-p 5432:5432/tcp \
|
|
|
|
|
-v /usr/share/zoneinfo/America/Chicago:/etc/localtime:ro \
|
|
|
|
|
postgres:14
|
|
|
|
|
displayName: Start postgres
|
|
|
|
|
- bash: |
|
|
|
|
@ -651,6 +660,7 @@ stages:
|
|
|
|
|
- stage: Integration
|
|
|
|
|
displayName: Integration
|
|
|
|
|
dependsOn: Packages
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
- job: Prepare
|
|
|
|
|
pool:
|
|
|
|
@ -1055,6 +1065,7 @@ stages:
|
|
|
|
|
dependsOn:
|
|
|
|
|
- Setup
|
|
|
|
|
displayName: Analyze
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
- job: Prepare
|
|
|
|
|
pool:
|
|
|
|
@ -1152,10 +1163,9 @@ stages:
|
|
|
|
|
git config --global user.name "Servarr"
|
|
|
|
|
git checkout -b api-docs
|
|
|
|
|
git add .
|
|
|
|
|
git status
|
|
|
|
|
if git status | grep modified
|
|
|
|
|
if git status | grep -q modified
|
|
|
|
|
then
|
|
|
|
|
git commit -am 'Automated API Docs update [skip ci]'
|
|
|
|
|
git commit -am 'Automated API Docs update'
|
|
|
|
|
git push -f --set-upstream origin api-docs
|
|
|
|
|
curl -X POST -H "Authorization: token ${GITHUBTOKEN}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/lidarr/lidarr/pulls -d '{"head":"api-docs","base":"develop","title":"Update API docs"}'
|
|
|
|
|
else
|
|
|
|
@ -1261,3 +1271,4 @@ stages:
|
|
|
|
|
DISCORDCHANNELID: $(discordChannelId)
|
|
|
|
|
DISCORDWEBHOOKKEY: $(discordWebhookKey)
|
|
|
|
|
DISCORDTHREADID: $(discordThreadId)
|
|
|
|
|
|
|
|
|
|