mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-29 21:57:16 +02:00
Main build (Jenkins)
This commit is contained in:
parent
dad821bc6c
commit
3089d10a81
62
.github/workflows/oint_test_full_en.yml
vendored
62
.github/workflows/oint_test_full_en.yml
vendored
@ -420,6 +420,48 @@ jobs:
|
||||
path: ./docs/en/results/PostgreSQL
|
||||
|
||||
|
||||
Testing-MySQL:
|
||||
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.21.0/oint_1.21.0_all_en.deb' &&
|
||||
sudo dpkg -i "$TEMP_DEB"
|
||||
rm -f "$TEMP_DEB"
|
||||
|
||||
|
||||
|
||||
- name: Common methods
|
||||
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_MYS_CommonMethods"
|
||||
|
||||
- name: Записать логи
|
||||
if: ${{ cancelled() }} == false
|
||||
uses: actions/cache/save@v3
|
||||
with:
|
||||
key: logs-MySQL
|
||||
path: ./docs/en/results/MySQL
|
||||
|
||||
|
||||
Testing-SQLite:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [Decode, Build]
|
||||
@ -1557,7 +1599,7 @@ jobs:
|
||||
|
||||
Encode:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [Testing-Telegram,Testing-VK,Testing-Viber,Testing-Twitter,Testing-PostgreSQL,Testing-SQLite,Testing-RCON,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,Testing-GreenAPI]
|
||||
needs: [Testing-Telegram,Testing-VK,Testing-Viber,Testing-Twitter,Testing-PostgreSQL,Testing-MySQL,Testing-SQLite,Testing-RCON,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,Testing-GreenAPI]
|
||||
if: ${{ always() }}
|
||||
permissions:
|
||||
contents: write
|
||||
@ -1665,6 +1707,22 @@ jobs:
|
||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||
"https://api.github.com/repos/Bayselonarrend/OpenIntegrations/actions/caches?key=logs-PostgreSQL"
|
||||
|
||||
- name: Получить логи MySQL
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
key: logs-MySQL
|
||||
path: ./docs/en/results/MySQL
|
||||
|
||||
|
||||
- name: Очистка логов MySQL
|
||||
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-MySQL"
|
||||
|
||||
- name: Получить логи SQLite
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
@ -1997,7 +2055,7 @@ jobs:
|
||||
|
||||
Clear-Cache:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [Testing-Telegram, Testing-VK, Testing-Viber, Testing-Twitter, Testing-PostgreSQL, Testing-SQLite, Testing-RCON, 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, Testing-GreenAPI, Encode]
|
||||
needs: [Testing-Telegram, Testing-VK, Testing-Viber, Testing-Twitter, Testing-PostgreSQL, Testing-MySQL, Testing-SQLite, Testing-RCON, 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, Testing-GreenAPI, Encode]
|
||||
if: ${{ always() }}
|
||||
steps:
|
||||
- name: Очистка основного кэша
|
||||
|
11
ci/cli_ostesten
vendored
11
ci/cli_ostesten
vendored
@ -254,6 +254,17 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Testing-MySQL') {
|
||||
steps {
|
||||
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_TestsCLI.os" "CLI_MYS_CommonMethods"'
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
stage('Testing-SQLite') {
|
||||
steps {
|
||||
|
||||
|
11
ci/ostesten
vendored
11
ci/ostesten
vendored
@ -254,6 +254,17 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Testing-MySQL') {
|
||||
steps {
|
||||
|
||||
|
||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||
powershell encoding: 'UTF-8', script:'1testrunner -run "./src/en/OInt/tests/Modules/internal/OPI_Tests.os" "MYS_CommonMethods"'
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
stage('Testing-SQLite') {
|
||||
steps {
|
||||
|
||||
|
13814
service/dictionaries/en.json
vendored
13814
service/dictionaries/en.json
vendored
File diff suppressed because it is too large
Load Diff
2
src/en/OInt/tools/Modules/OPI_AddIns.os
vendored
2
src/en/OInt/tools/Modules/OPI_AddIns.os
vendored
@ -127,7 +127,7 @@ Function InitializeAddIn(Val AddInName, Val Class, AddIn)
|
||||
|
||||
EndFunction
|
||||
|
||||
Function AttachAddInOnServer(Val AddInName, Val Class, Val Error)
|
||||
Function AttachAddInOnServer(Val AddInName, Val Class, Error)
|
||||
|
||||
If OPI_Tools.IsOneScript() Then
|
||||
TemplateName = AddInsFolderOS() + AddInName + ".zip";
|
||||
|
@ -127,7 +127,7 @@ Function InitializeAddIn(Val AddInName, Val Class, AddIn)
|
||||
|
||||
EndFunction
|
||||
|
||||
Function AttachAddInOnServer(Val AddInName, Val Class, Val Error)
|
||||
Function AttachAddInOnServer(Val AddInName, Val Class, Error)
|
||||
|
||||
If OPI_Tools.IsOneScript() Then
|
||||
TemplateName = AddInsFolderOS() + AddInName + ".zip";
|
||||
|
2
src/ru/OInt/tools/Modules/OPI_Компоненты.os
vendored
2
src/ru/OInt/tools/Modules/OPI_Компоненты.os
vendored
@ -127,7 +127,7 @@
|
||||
|
||||
КонецФункции
|
||||
|
||||
Функция ПодключитьКомпонентуНаСервере(Знач ИмяКомпоненты, Знач Класс, Знач Ошибка)
|
||||
Функция ПодключитьКомпонентуНаСервере(Знач ИмяКомпоненты, Знач Класс, Ошибка)
|
||||
|
||||
Если OPI_Инструменты.ЭтоOneScript() Тогда
|
||||
ИмяМакета = КаталогКомпонентOS() + ИмяКомпоненты + ".zip";
|
||||
|
Loading…
x
Reference in New Issue
Block a user