-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #485 from ONLYOFFICE/release/v1.1.0
Release/v1.1.0
- Loading branch information
Showing
2,183 changed files
with
36,042 additions
and
8,522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ Logs/ | |
.eslintcache | ||
build/deploy/ | ||
/public/debuginfo.md | ||
TestsResults/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
check_hardware () { | ||
DISK_REQUIREMENTS=40960; | ||
MEMORY_REQUIREMENTS=5500; | ||
CORE_REQUIREMENTS=2; | ||
|
||
AVAILABLE_DISK_SPACE=$(df -m / | tail -1 | awk '{ print $4 }'); | ||
|
||
if [ ${AVAILABLE_DISK_SPACE} -lt ${DISK_REQUIREMENTS} ]; then | ||
echo "Minimal requirements are not met: need at least $DISK_REQUIREMENTS MB of free HDD space" | ||
exit 1; | ||
fi | ||
|
||
TOTAL_MEMORY=$(free -m | grep -oP '\d+' | head -n 1); | ||
|
||
if [ ${TOTAL_MEMORY} -lt ${MEMORY_REQUIREMENTS} ]; then | ||
echo "Minimal requirements are not met: need at least $MEMORY_REQUIREMENTS MB of RAM" | ||
exit 1; | ||
fi | ||
|
||
CPU_CORES_NUMBER=$(cat /proc/cpuinfo | grep processor | wc -l); | ||
|
||
if [ ${CPU_CORES_NUMBER} -lt ${CORE_REQUIREMENTS} ]; then | ||
echo "The system does not meet the minimal hardware requirements. CPU with at least $CORE_REQUIREMENTS cores is required" | ||
exit 1; | ||
fi | ||
} | ||
|
||
if [ "$SKIP_HARDWARE_CHECK" != "true" ]; then | ||
check_hardware | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
@echo off | ||
|
||
PUSHD %~dp0 | ||
call runasadmin.bat "%~dpnx0" | ||
|
||
if %errorlevel% == 0 ( | ||
PUSHD %~dp0.. | ||
|
||
|
||
echo "mode=" | ||
|
||
|
||
REM call yarn wipe | ||
call yarn install | ||
|
||
REM call yarn build | ||
call yarn build:test | ||
|
||
REM call yarn wipe | ||
call yarn deploy | ||
|
||
|
||
REM copy nginx configurations to deploy folder | ||
xcopy config\nginx\onlyoffice.conf build\deploy\nginx\ /E /R /Y | ||
powershell -Command "(gc build\deploy\nginx\onlyoffice.conf) -replace '#', '' | Out-File -encoding ASCII build\deploy\nginx\onlyoffice.conf" | ||
|
||
xcopy config\nginx\sites-enabled\* build\deploy\nginx\sites-enabled\ /E /R /Y | ||
|
||
REM fix paths | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-calendar.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Calendar\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-calendar.conf" | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-crm.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.CRM\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-crm.conf" | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-editor.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Files\editor' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-editor.conf" | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-files.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Files\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-files.conf" | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-login.conf) -replace 'ROOTPATH', '%~dp0deploy\studio\login' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-login.conf" | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-mail.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Mail\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-mail.conf" | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-people.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.People\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-people.conf" | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-projects.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Projects\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-projects.conf" | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-studio.conf) -replace 'ROOTPATH', '%~dp0deploy\studio\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-studio.conf" | ||
|
||
REM restart nginx | ||
echo service nginx stop | ||
call sc stop nginx > nul | ||
|
||
REM sleep 5 seconds | ||
call ping 127.0.0.1 -n 6 > nul | ||
|
||
echo service nginx start | ||
call sc start nginx > nul | ||
|
||
REM sleep 5 seconds | ||
call ping 127.0.0.1 -n 6 > nul | ||
|
||
|
||
choice /t 10 /d Y /m "Do you want to start tests in sequential mode?" | ||
if errorlevel 2 call yarn e2e.test | ||
if errorlevel 1 call yarn e2e.test:sequential | ||
|
||
|
||
if NOT %errorlevel% == 0 ( | ||
echo Couldn't restarte Onlyoffice%%~nf service | ||
) | ||
|
||
) | ||
|
||
echo. | ||
|
||
POPD | ||
|
||
if "%1"=="nopause" goto start | ||
pause | ||
:start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
@echo off | ||
|
||
PUSHD %~dp0 | ||
call runasadmin.bat "%~dpnx0" | ||
|
||
if %errorlevel% == 0 ( | ||
PUSHD %~dp0.. | ||
|
||
|
||
echo "mode=" | ||
|
||
|
||
REM call yarn wipe | ||
call yarn install | ||
|
||
REM call yarn build | ||
call yarn build:test.translation | ||
|
||
REM call yarn wipe | ||
call yarn deploy | ||
|
||
|
||
REM copy nginx configurations to deploy folder | ||
xcopy config\nginx\onlyoffice.conf build\deploy\nginx\ /E /R /Y | ||
powershell -Command "(gc build\deploy\nginx\onlyoffice.conf) -replace '#', '' | Out-File -encoding ASCII build\deploy\nginx\onlyoffice.conf" | ||
|
||
xcopy config\nginx\sites-enabled\* build\deploy\nginx\sites-enabled\ /E /R /Y | ||
|
||
REM fix paths | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-calendar.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Calendar\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-calendar.conf" | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-crm.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.CRM\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-crm.conf" | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-editor.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Files\editor' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-editor.conf" | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-files.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Files\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-files.conf" | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-login.conf) -replace 'ROOTPATH', '%~dp0deploy\studio\login' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-login.conf" | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-mail.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Mail\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-mail.conf" | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-people.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.People\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-people.conf" | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-projects.conf) -replace 'ROOTPATH', '%~dp0deploy\products\ASC.Projects\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-projects.conf" | ||
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-studio.conf) -replace 'ROOTPATH', '%~dp0deploy\studio\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-studio.conf" | ||
|
||
REM restart nginx | ||
echo service nginx stop | ||
call sc stop nginx > nul | ||
|
||
REM sleep 5 seconds | ||
call ping 127.0.0.1 -n 6 > nul | ||
|
||
echo service nginx start | ||
call sc start nginx > nul | ||
|
||
REM sleep 5 seconds | ||
call ping 127.0.0.1 -n 6 > nul | ||
|
||
call yarn e2e.test:translation | ||
|
||
exit | ||
|
||
|
||
|
||
if NOT %errorlevel% == 0 ( | ||
echo Couldn't restarte Onlyoffice%%~nf service | ||
) | ||
|
||
) | ||
|
||
echo. | ||
|
||
POPD | ||
|
||
if "%1"=="nopause" goto start | ||
pause | ||
:start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PUSHD %~dp0.. | ||
dotnet test common\Tests\Frontend.Translations.Tests\Frontend.Translations.Tests.csproj --filter Name~SpellCheckTest -l:html -r TestsResults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PUSHD %~dp0.. | ||
dotnet test common\Tests\Frontend.Translations.Tests\Frontend.Translations.Tests.csproj --filter "TestCategory=FastRunning" -l:html -r TestsResults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.