1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-07-17 01:42:25 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2024-12-15 11:14:30 +03:00
parent 496a7fd4d9
commit bcdaf29016
16 changed files with 5954 additions and 5874 deletions

View File

@ -1305,9 +1305,51 @@ jobs:
key: logs-S3
path: ./docs/en/results/S3
Testing-TCP:
runs-on: ubuntu-latest
needs: [Decode, Build]
steps:
- uses: actions/checkout@v2
- uses: otymko/setup-onescript@v1.4
with:
version: 1.9.1
- name: Получить тестовые данные из кэша
uses: actions/cache/restore@v3
with:
key: test-data
path: ./data.json
- name: Установить asserts и 1testrunner
run: |
opm install asserts
opm install 1testrunner
- name: Установить OInt
run: |
TEMP_DEB="$(mktemp)" &&
wget -O "$TEMP_DEB" 'https://api.athenaeum.digital/tc/job/Release/lastSuccessfulBuild/artifact/1.16.1/oint_1.16.1_all_en.deb' &&
sudo dpkg -i "$TEMP_DEB"
rm -f "$TEMP_DEB"
- name: TCP Client
if: ${{ cancelled() }} == false
run: oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os "CLI_TC_Client"
- name: Записать логи
if: ${{ cancelled() }} == false
uses: actions/cache/save@v3
with:
key: logs-TCP
path: ./docs/en/results/TCP
Encode:
runs-on: ubuntu-latest
needs: [Testing-Telegram,Testing-VK,Testing-Viber,Testing-Twitter,Testing-YandexDisk,Testing-GoogleWorkspace,Testing-GoogleCalendar,Testing-GoogleDrive,Testing-GoogleSheets,Testing-Notion,Testing-Slack,Testing-Airtable,Testing-Dropbox,Testing-Bitrix24,Testing-VkTeams,Testing-Ozon,Testing-Neocities,Testing-CDEK,Testing-YandexMetrika,Testing-S3]
needs: [Testing-Telegram,Testing-VK,Testing-Viber,Testing-Twitter,Testing-YandexDisk,Testing-GoogleWorkspace,Testing-GoogleCalendar,Testing-GoogleDrive,Testing-GoogleSheets,Testing-Notion,Testing-Slack,Testing-Airtable,Testing-Dropbox,Testing-Bitrix24,Testing-VkTeams,Testing-Ozon,Testing-Neocities,Testing-CDEK,Testing-YandexMetrika,Testing-S3,Testing-TCP]
if: ${{ always() }}
permissions:
contents: write
@ -1655,6 +1697,22 @@ jobs:
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=logs-S3"
- name: Получить логи TCP
uses: actions/cache/restore@v3
with:
key: logs-TCP
path: ./docs/en/results/TCP
- name: Очистка логов TCP
run: |
curl -L \
-X DELETE \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=logs-TCP"
- name: Записать данные
uses: stefanzweifel/git-auto-commit-action@v5
@ -1667,7 +1725,7 @@ jobs:
Clear-Cache:
runs-on: ubuntu-latest
needs: [Testing-Telegram, Testing-VK, Testing-Viber, Testing-Twitter, Testing-YandexDisk, Testing-GoogleWorkspace, Testing-GoogleCalendar, Testing-GoogleDrive, Testing-GoogleSheets, Testing-Notion, Testing-Slack, Testing-Airtable, Testing-Dropbox, Testing-Bitrix24, Testing-VkTeams, Testing-Ozon, Testing-Neocities, Testing-CDEK, Testing-YandexMetrika, Testing-S3, Encode]
needs: [Testing-Telegram, Testing-VK, Testing-Viber, Testing-Twitter, Testing-YandexDisk, Testing-GoogleWorkspace, Testing-GoogleCalendar, Testing-GoogleDrive, Testing-GoogleSheets, Testing-Notion, Testing-Slack, Testing-Airtable, Testing-Dropbox, Testing-Bitrix24, Testing-VkTeams, Testing-Ozon, Testing-Neocities, Testing-CDEK, Testing-YandexMetrika, Testing-S3, Testing-TCP, Encode]
if: ${{ always() }}
steps:
- name: Очистка основного кэша

View File

@ -656,6 +656,17 @@ pipeline {
}
}
stage('Testing-TCP') {
steps {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os" "CLI_TC_Client"'
}
}
}
}
post{
always{

View File

@ -656,6 +656,17 @@ pipeline {
}
}
stage('Testing-TCP') {
steps {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_Tests.os" "TC_Client"'
}
}
}
}
post{
always{

File diff suppressed because it is too large Load Diff

View File

@ -14285,7 +14285,7 @@ Procedure CDEK_GetDeliveryAppointment(FunctionParameters)
// END
OPI_TestDataRetrieval.WriteLog(Result, "GetDeliveryAppointment", "CDEK");
OPI_TestDataRetrieval.Check_CdekOrder(Result);
OPI_TestDataRetrieval.Check_Map(Result);
EndProcedure

View File

@ -16207,7 +16207,7 @@ Procedure CLI_CDEK_GetDeliveryAppointment(FunctionParameters)
// END
OPI_TestDataRetrieval.WriteLogCLI(Result, "GetDeliveryAppointment", "CDEK");
OPI_TestDataRetrieval.Check_CdekOrder(Result);
OPI_TestDataRetrieval.Check_Map(Result);
EndProcedure

View File

@ -14285,7 +14285,7 @@ Procedure CDEK_GetDeliveryAppointment(FunctionParameters)
// END
OPI_TestDataRetrieval.WriteLog(Result, "GetDeliveryAppointment", "CDEK");
OPI_TestDataRetrieval.Check_CdekOrder(Result);
OPI_TestDataRetrieval.Check_Map(Result);
EndProcedure

View File

@ -16207,7 +16207,7 @@ Procedure CLI_CDEK_GetDeliveryAppointment(FunctionParameters)
// END
OPI_TestDataRetrieval.WriteLogCLI(Result, "GetDeliveryAppointment", "CDEK");
OPI_TestDataRetrieval.Check_CdekOrder(Result);
OPI_TestDataRetrieval.Check_Map(Result);
EndProcedure

View File

@ -14285,7 +14285,7 @@
// END
OPI_ПолучениеДанныхТестов.ЗаписатьЛог(Результат, "ПолучитьДоговоренностьОДоставке", "CDEK");
OPI_ПолучениеДанныхТестов.Проверка_СдэкЗаказ(Результат);
OPI_ПолучениеДанныхТестов.Проверка_Соответствие(Результат);
КонецПроцедуры

View File

@ -16207,7 +16207,7 @@
// END
OPI_ПолучениеДанныхТестов.ЗаписатьЛогCLI(Результат, "ПолучитьДоговоренностьОДоставке", "CDEK");
OPI_ПолучениеДанныхТестов.Проверка_СдэкЗаказ(Результат);
OPI_ПолучениеДанныхТестов.Проверка_Соответствие(Результат);
КонецПроцедуры