mirror of https://gitee.com/bigwinds/arangodb
try to fix windows build (#4468)
This commit is contained in:
parent
d577933b87
commit
fd166d07f4
|
@ -17,11 +17,11 @@ INCLUDE(CheckCCompilerFlag)
|
|||
INCLUDE(FindPerl)
|
||||
|
||||
IF(NOT PERL_FOUND)
|
||||
MESSAGE(FATAL "Perl required to build snowball")
|
||||
MESSAGE(FATAL_ERROR "Perl required to build snowball")
|
||||
ENDIF()
|
||||
|
||||
IF(NOT STEMMER_SOURCE_DIR)
|
||||
MESSAGE(FATAL "Source directory required to build snowball")
|
||||
MESSAGE(FATAL_ERROR "Source directory required to build snowball")
|
||||
ENDIF()
|
||||
|
||||
SET(CMAKE_CURRENT_SOURCE_DIR "${STEMMER_SOURCE_DIR}")
|
||||
|
|
|
@ -1351,7 +1351,11 @@ def buildEdition(os, edition, maintainer) {
|
|||
}
|
||||
}
|
||||
else if (os == 'windows') {
|
||||
logFile = "..\\" + logFile
|
||||
echo "starting windows configure and build"
|
||||
workspace = "${env.WORKSPACE}"
|
||||
workspace = workspace.replace("\\", "/")
|
||||
logFile = workspace + "/" + logFile
|
||||
|
||||
extra = "-DUSE_CATCH_TESTS=ON -DUSE_FAILURE_TESTS=ON -DDEBUG_SYNC_REPLICATION=ON"
|
||||
if( edition == "enterprise"){
|
||||
extra += " -DUSE_ENTERPRISE=ON"
|
||||
|
@ -1363,7 +1367,7 @@ def buildEdition(os, edition, maintainer) {
|
|||
powershell "Remove-Item -Force -Recurse ${arch} -ErrorAction SilentlyContinue"
|
||||
powershell "New-Item -Force -ItemType Directory ${arch} -ErrorAction SilentlyContinue"
|
||||
powershell "New-Item -ItemType Directory -Force -Path build"
|
||||
powershell "cd build; ..\\configure\\${os}_vs2017_RelWithDebInfo.ps1 -build ${extra} | Add-Content -PassThru ${logFile}"
|
||||
powershell "cd build; ..\\configure\\${os}_vs2017_RelWithDebInfo.ps1 -build ${extra} | Add-Content -PassThru -Path \"${logFile}\""
|
||||
}
|
||||
|
||||
logStopStage(os, logFile)
|
||||
|
|
|
@ -1351,7 +1351,11 @@ def buildEdition(os, edition, maintainer) {
|
|||
}
|
||||
}
|
||||
else if (os == 'windows') {
|
||||
logFile = "..\\" + logFile
|
||||
echo "starting windows configure and build"
|
||||
workspace = "${env.WORKSPACE}"
|
||||
workspace = workspace.replace("\\", "/")
|
||||
logFile = workspace + "/" + logFile
|
||||
|
||||
extra = "-DUSE_CATCH_TESTS=ON -DUSE_FAILURE_TESTS=ON -DDEBUG_SYNC_REPLICATION=ON"
|
||||
if( edition == "enterprise"){
|
||||
extra += " -DUSE_ENTERPRISE=ON"
|
||||
|
@ -1363,7 +1367,7 @@ def buildEdition(os, edition, maintainer) {
|
|||
powershell "Remove-Item -Force -Recurse ${arch} -ErrorAction SilentlyContinue"
|
||||
powershell "New-Item -Force -ItemType Directory ${arch} -ErrorAction SilentlyContinue"
|
||||
powershell "New-Item -ItemType Directory -Force -Path build"
|
||||
powershell "cd build; ..\\configure\\${os}_vs2017_RelWithDebInfo.ps1 -build ${extra} | Add-Content -PassThru ${logFile}"
|
||||
powershell "cd build; ..\\configure\\${os}_vs2017_RelWithDebInfo.ps1 -build ${extra} | Add-Content -PassThru -Path \"${logFile}\""
|
||||
}
|
||||
|
||||
logStopStage(os, logFile)
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#>
|
||||
|
||||
# set variables
|
||||
$ErrorActionPreference = "Stop"
|
||||
$PSDefaultParameterValues['*:ErrorAction']='Stop'
|
||||
$ErrorActionPreference = "Continue"
|
||||
$PSDefaultParameterValues['*:ErrorAction']='Continue'
|
||||
|
||||
$arango_source = split-path -parent $script_path
|
||||
|
||||
|
|
|
@ -171,7 +171,7 @@ describe('Shard distribution', function () {
|
|||
// And is followed by a numeric value
|
||||
const nr = parseInt(shard.slice(1));
|
||||
expect(nr).to.be.above(0);
|
||||
return nr
|
||||
return nr;
|
||||
};
|
||||
|
||||
const sortShardsNumericly = function (l, r) {
|
||||
|
|
Loading…
Reference in New Issue